Commit 8a15bc5
authored
Fix reusable workflow to checkout lab-validation repository (#82)
## Problem
The reusable workflow was checking out the calling repository instead of
the lab-validation repository, causing the discover-labs job to fail
when trying to find the snapshots/ directory.
When called from batfish/docker, the workflow would check out the docker
repository and then try to run:
```bash
ls -1 snapshots/ # This fails because docker repo has no snapshots/ directory
```
## Solution
Fixed both checkout actions to explicitly specify the lab-validation
repository:
1. **discover-labs job**: Added `repository: batfish/lab-validation`
2. **lab-integration-test job**: Added `repository:
batfish/lab-validation` to the existing path specification
## Impact
This enables the reusable workflow to be called from any repository
(like batfish/docker) while still accessing the lab snapshots and test
framework from lab-validation.
## Testing
This fix is needed for batfish/docker#140 which integrates
lab-validation testing into the docker release pipeline.1 parent e0fb407 commit 8a15bc5
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| |||
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
| 121 | + | |
119 | 122 | | |
120 | 123 | | |
121 | 124 | | |
| |||
0 commit comments