Skip to content

Commit

Permalink
Setup ACT to work with nix-shell - pt#1
Browse files Browse the repository at this point in the history
  • Loading branch information
patryk-kozak authored and AleksanderGondek committed Mar 23, 2022
1 parent 1f97a21 commit d66f057
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .actrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
-P ubuntu-latest=ghcr.io/catthehacker/ubuntu:full-latest
--platform ubuntu-latest=myoung34/github-runner:latest
--container-cap-add SYS_ADMIN
10 changes: 10 additions & 0 deletions DEVELOPMENT-CI.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Development of GitHub Actions

## Using `act` to run workflow locally

1. Make sure docker is running and available, ex. `docker run hello-world`
2. Run: `docker pull nektos/act-environments-ubuntu:18.04-full` - this will take significant amount of time so make sure it doesn't block your work
3. Run: `act`, it should start container and run workflow!

To specify which workflow to run, use `-w {path_to_yaml}` when running `act`.
Check `act --help` for more informations.
3 changes: 3 additions & 0 deletions scripts/nix.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ keep-derivations = true
keep-outputs = true
require-sigs = false
sandbox = true
enforce-determinism = true
log-lines = 100
repeat = 1

0 comments on commit d66f057

Please sign in to comment.