-
Notifications
You must be signed in to change notification settings - Fork 5
92 lines (85 loc) · 2.34 KB
/
ci.yaml
File metadata and controls
92 lines (85 loc) · 2.34 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: CI
on:
pull_request:
push:
branches: [main]
jobs:
build-check-typescript:
name: Build and check the TypeScript Action
runs-on: ubuntu-22.04
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v6
- uses: DeterminateSystems/determinate-nix-action@v3
- uses: DeterminateSystems/flakehub-cache-action@main
- run: nix develop --command pnpm install
- run: nix develop --command pnpm run format
- run: nix develop --command pnpm run lint
- run: nix develop --command pnpm run build
- run: nix develop --command pnpm run package
- run: git status --porcelain=v1
- run: git diff --exit-code
run-x86_64-linux-clean:
name: Run x86_64 Linux (clean)
needs: build-check-typescript
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v6
- name: Check flake.lock
uses: ./
with:
_internal-strict-mode: true
run-x86_64-linux-dirty:
name: Run x86_64 Linux (dirty)
needs: build-check-typescript
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v6
- name: Check flake.lock
uses: ./
with:
flake-lock-path: flake.dirty.lock
_internal-strict-mode: true
run-aarch64-darwin-clean:
name: Run x86_64 Darwin (clean)
needs: build-check-typescript
runs-on: macos-latest
steps:
- uses: actions/checkout@v6
- name: Check flake.lock
uses: ./
with:
_internal-strict-mode: true
run-aarch64-darwin-dirty:
name: Run x86_64 Darwin (dirty)
needs: build-check-typescript
runs-on: macos-latest
steps:
- uses: actions/checkout@v6
- name: Check flake.lock
uses: ./
with:
flake-lock-path: flake.dirty.lock
_internal-strict-mode: true
success:
name: Success
needs:
- run-x86_64-linux-clean
- run-x86_64-linux-dirty
- run-aarch64-darwin-clean
- run-aarch64-darwin-dirty
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- run: "true"
- run: |
echo "A dependent in the build matrix failed:"
echo "$needs"
exit 1
env:
needs: ${{ toJSON(needs) }}
if: |
contains(needs.*.result, 'failure') ||
contains(needs.*.result, 'cancelled')