-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make upload/download artifacts work with act
Signed-off-by: Timothy Johnson <[email protected]>
- Loading branch information
Showing
2 changed files
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,21 +6,17 @@ General information about GH Workflows | |
|
||
1. Read about it: https://github.com/nektos/act (Requires Docker) | ||
2. Install it https://github.com/nektos/act#installation | ||
3. Run: `act --eventpath .github/_act_event.json --workflows .github/workflows/zowe-cli.yml --verbose --reuse` | ||
- Equivalent: `act -vre .github/_act_event.json -W .github/workflows/zowe-cli.yml` | ||
4. After it fails the first time, Copy the `zowe.tgz` file from the Build-Linux container to the Cross-Platform-Test container | ||
- `docker cp act-Zowe-CLI-Build-Linux:/root/gh/zowe/zowe-cli/zowe.tgz .` | ||
- `docker cp zowe.tgz act-Zowe-CLI-Cross-Platform-Test:/root/gh/zowe/zowe-cli/` | ||
5. Run: `act -re .github/_act_event.json -W .github/workflows/zowe-cli.yml` | ||
3. Run: `act --eventpath .github/_act_event.json --workflows .github/workflows/zowe-cli.yml --reuse` | ||
- Equivalent: `act -re .github/_act_event.json -W .github/workflows/zowe-cli.yml` | ||
|
||
`100.` To start from scratch, just remove the containers | ||
- `docker rm act-Zowe-CLI-Build-Linux --force` | ||
- `docker rm act-Zowe-CLI-Cross-Platform-Test --force` | ||
|
||
**Knwon Issues for `nektos/[email protected]`** | ||
**Known Issues for `nektos/[email protected]`** | ||
|
||
`0.` The first time (i.e. when it is supposed to fail) it will likely take ~3 minutes to run. Subsequent runs (with `--reuse`) should take less than 2 minutes. <br/> | ||
`1.` Artifact upload and download doesn't work on `nektos/act` (hence why we need to manually copy the zowe.tgz). <br/> | ||
`0.` The first time it will likely take ~3 minutes to run. Subsequent runs (with `--reuse`) should take less than 2 minutes. <br/> | ||
`1.` Artifact upload and download doesn't work on `nektos/act` (hence why we need to copy the zowe.tgz to a shared Docker volume). <br/> | ||
`2.` `nektos/act` only works with linux distros. <br/> | ||
`3.` `Install Rust toolchain` step was replaced with simple `yum install cargo -y` because `actions-rs/toolchain@v1` doesn't really work with `nektos/act`. <br/> | ||
`4.` Steps context (`steps.<id>`) doesn't really work on `nektos/act` (hence why we force unit and integration tests to run). <br/> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters