-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add instructions for running GitHub Actions locally. (#279)
While there, rename example and reactor jobs to their plural forms. Signed-off-by: Piotr Sikora <[email protected]>
- Loading branch information
1 parent
5376967
commit 7266794
Showing
3 changed files
with
37 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
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Development | ||
|
||
## Testing | ||
|
||
GitHub Actions can be executed locally using the [`act`] tool. | ||
|
||
All tests can be executed using: | ||
|
||
act | ||
|
||
Individual tests can be executed using `-j` and `--matrix` parameters, e.g.: | ||
|
||
act -j bazel | ||
act -j stable | ||
act -j nightly | ||
act -j examples --matrix example:http_auth_random | ||
|
||
By default, all jobs are cached in `~/.cache/actcache`. This can be disabled | ||
using the `--no-cache-server` parameter. | ||
|
||
## Updating Bazel dependencies | ||
|
||
When adding or updating Cargo dependencies, the existing Bazel `BUILD` files | ||
must be regenerated using the [`bazelisk`] tool: | ||
|
||
```sh | ||
bazelisk run //bazel/cargo:crates_vendor -- --repin all | ||
``` | ||
|
||
|
||
[`act`]: https://github.com/nektos/act | ||
[`bazelisk`]: https://github.com/bazelbuild/bazelisk |
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