first cut of job deletion poller #46
Workflow file for this run
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: "Nix" | |
on: | |
pull_request: | |
push: | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Local cache | |
uses: actions/cache@v3 | |
with: | |
path: /nix/store | |
key: "${{ runner.os }}-nix-cache" | |
- uses: cachix/install-nix-action@v20 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
extra_nix_config: | | |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} | |
# follow guide: https://nix.dev/tutorials/continuous-integration-github-actions | |
# this uses the tokens which are revokable | |
- uses: cachix/cachix-action@v12 | |
with: | |
name: jappie | |
# If you chose API tokens for write access OR if you have a private cache | |
# authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' | |
- run: nix build | |
- run: nix flake check | |
- run: nix develop -c echo OK | |
# legacy actions | |
- run: nix-build | |
- run: nix-shell --run "echo OK" |