flake: use garnix cache; gh action to use the same #75
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
name: "CI" | |
on: | |
# Run only when pushing to master branch, and making PRs | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@main | |
- uses: DeterminateSystems/magic-nix-cache-action@main | |
- run: nix --accept-flake-config build --no-link --print-out-paths .#e2e-playwright-test | |
- name: E2E tests | |
run: nix --accept-flake-config run .#e2e-playwright-test |