-
Notifications
You must be signed in to change notification settings - Fork 2
64 lines (58 loc) · 1.83 KB
/
all-tests.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: All Tests
on:
push:
branches:
- main
paths:
- .github/workflows/all-tests.yml
- flake.nix
- flake.lock
- tests/**
- types/**
- lib/**
- '!**/README*'
pull_request:
types: [opened, synchronize, reopened]
paths:
- .github/workflows/all-tests.yml
- flake.nix
- flake.lock
- tests/**
- types/**
- lib/**
- '!**/README*'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
all-tests:
runs-on: ubuntu-latest
env:
SYSTEM: x86_64-linux
steps:
- uses: cachix/install-nix-action@11f4ad19be46fd34c005a2864996d8f197fb51c6
with:
extra_nix_config: |
experimental-features = nix-command flakes
substituters = https://cache.nixos.org
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
max-jobs = auto
cores = 0
- name: Setup
run: |
echo "# ============================================================================ #" >&2;
{ printf ' bash version: '; bash --version|head -n1; } >&2;
{ printf ' nix version: '; nix --version; } >&2;
echo "# ---------------------------------------------------------------------------- #" >&2;
nix registry add head "github:${{ github.repository }}/$GITHUB_REF";
- name: All Checks
run: |
nix flake check head --show-trace;
nix flake check head --show-trace --impure;
- name: All Tests
run: |
nix build head#tests --show-trace;
nix build head#tests --show-trace --impure;
- name: DeepSeq Lib
run: |
nix eval head#lib --apply "lib: builtins.deepSeq lib true" --show-trace;