-
Notifications
You must be signed in to change notification settings - Fork 34
29 lines (28 loc) · 923 Bytes
/
nix.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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