Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .actrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--platform ubuntu-latest=myoung34/github-runner:latest
--container-cap-add SYS_ADMIN
15 changes: 15 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: "ci-checks"
on:
pull_request:
push:
jobs:
tests:
name: verify nix shell is properly instantiated for no pre-installed nix
runs-on: ubuntu-latest
steps:
- uses:
actions/checkout@v2.4.0
# Flakes do not like shallow clones
with:
fetch-depth: 0
- run: ./nix-shell.sh
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
2 changes: 2 additions & 0 deletions scripts/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ pkgs.mkShell {
# Dynamically load nix envs
nix-direnv
shellcheck
act
docker
];

TERM = "xterm";
Expand Down