Skip to content

Commit

Permalink
Describe how to test build job locally
Browse files Browse the repository at this point in the history
  • Loading branch information
danyalaytekin committed Nov 10, 2023
1 parent f066201 commit af4a4ca
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,28 @@ Every page on this site is tested in CI using Pa11y. Pull requests will fail the
make test
```

### Testing the GitHub Actions workflows

This project's `build` job (but not currently the `test` job) can be tested locally using [nektos/act](https://github.com/nektos/act), which can be installed with Homebrew:

```sh
brew install act
```

```sh
# Run the `build` job locally
act --job build --container-architecture linux/amd64
```

```sh
# Validate the workflow's syntax, without running it
act --dryrun --container-architecture linux/amd64
```

Notes:
- The `--container-architecture` flag ensures `act` will be able to install the action `setup-ruby` on an ARM-based system. It may be omitted if you're using an Intel architecture.
- Add `--verbose` for more output.

## Licence

[![CC-BY-NC](https://i.creativecommons.org/l/by-nc/4.0/88x31.png)][license]
Expand Down

0 comments on commit af4a4ca

Please sign in to comment.