-
Notifications
You must be signed in to change notification settings - Fork 11
28 lines (26 loc) · 935 Bytes
/
test.yml
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
name: run tests
on:
push:
branches:
- develop
pull_request: {}
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
script: ["./test.sh", "./bench.sh"]
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
/nix/store
key: nix-store-${{ hashFiles('default.nix') }}-${{ hashFiles('config.nix') }}-${{ hashFiles('nix') }}
- uses: cachix/install-nix-action@v12
with:
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
substituters = https://cache.nixos.org/ https://cache.holo.host/
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= cache.holo.host-1:lNXIXtJgS9Iuw4Cu6X0HINLu9sTfcjEntnrgwMQIMcE= cache.holo.host-2:ZJCkX3AUYZ8soxTLfTb60g+F3MkWD7hkH9y8CgqwhDQ=
- run: nix-shell --fallback --run ${{ matrix.script }}