Bumping base #9
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
on: | |
pull_request: | |
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 -Lv | |
- run: nix flake check -Lv | |
- run: nix develop -Lv -c echo OK |