This repository has been archived by the owner on May 28, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start to use act to run GitHub actions locally
For example: act -j check_rebase # fails on a merge commit act -j check_history # fails unless on a merge commit, typically from bors `act` uses the job ID rather than the job name; `bors` uses the job name. `act` 0.2.0 doesn't support the `container: name:tag` syntax. Start to support https://github.com/nektos/act for local testing. `act` has partial support for GitHub actions. This change works around two issues: 1. Steps in GitHub actions can be run on the virtual machine host directly or inside a container. The virtual machines are configure with a [long list] of available software, including `git`. At present `act` does not make that software available locally, so instead we run inside a container. The `act` maintainer describes this as a [known issue]. 2. The checkout on GitHub leaves a shallow repository. The checkout step on `act` leaves a complete repository. Running `git fetch --unshallow` on a complete repository fails with the error below. As a workaround add `|| true` so it succeeds in both. fatal: --unshallow on a complete repository does not make sense [long list]: https://github.com/actions/virtual-environments/blob/master/images/linux/Ubuntu1804-README.md [known issue]: nektos/act#74 (comment)
- Loading branch information