-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (39 loc) · 1.18 KB
/
test.yml
File metadata and controls
41 lines (39 loc) · 1.18 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
on:
push:
branches:
- master
pull_request:
branches:
- master
name: Test
jobs:
test:
name: Lint and Test
runs-on: ubuntu-latest
permissions:
actions: write # caching
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Install Nix
uses: cachix/install-nix-action@51f3067b56fe8ae331890c77d4e454f6d60615ff # v31
with:
extra_nix_config: |
keep-env-derivations = true
keep-outputs = true
- name: Restore and save Nix store
uses: nix-community/cache-nix-action@7df957e333c1e5da7721f60227dbba6d06080569 # v7
with:
primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }}
restore-prefixes-first-match: nix-${{ runner.os }}-
gc-max-store-size-linux: 4G
purge: true
purge-prefixes: nix-${{ runner.os }}-
purge-created: 0
purge-last-accessed: P1DT12H # 1 day and 12 hours
purge-primary-key: never
- name: Run all checks
run: nix flake check -Lv --keep-going --option log-lines 0