-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (62 loc) · 1.93 KB
/
test.yaml
File metadata and controls
62 lines (62 loc) · 1.93 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: test
on:
pull_request:
branches:
- main
jobs:
check:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: "false"
- uses: DeterminateSystems/nix-installer-action@c5a866b6ab867e88becbed4467b93592bce69f8a # v21
with:
determinate: false
- uses: DeterminateSystems/magic-nix-cache-action@565684385bcd71bad329742eefe8d12f2e765b39 # v13
- run: nix flake check --all-systems --print-build-logs
timeout-minutes: 10
diff:
permissions:
contents: read
needs:
- check
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: "false"
- uses: DeterminateSystems/nix-installer-action@c5a866b6ab867e88becbed4467b93592bce69f8a # v21
with:
determinate: false
- uses: DeterminateSystems/magic-nix-cache-action@565684385bcd71bad329742eefe8d12f2e765b39 # v13
- uses: natsukium/nix-diff-action@65526931655c9561dfdb1330b8770d1673857ae9 # v1.0.3
with:
mode: diff-only
attributes: |
- displayName: ${{ matrix.host }}
attribute: ${{ matrix.attribute }}
timeout-minutes: 30
strategy:
matrix:
include:
- host: aries
attribute: darwinConfigurations.aries.system
runner: macos-latest
- host: gemini
attribute: nixosConfigurations.gemini.config.system.build.toplevel
runner: ubuntu-latest
comment:
permissions:
actions: read
pull-requests: write
needs:
- diff
runs-on: ubuntu-latest
steps:
- uses: natsukium/nix-diff-action@65526931655c9561dfdb1330b8770d1673857ae9 # v1.0.3
with:
mode: comment-only
timeout-minutes: 10