-
Notifications
You must be signed in to change notification settings - Fork 4
71 lines (65 loc) · 1.82 KB
/
ci.yaml
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
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@v4
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-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@v4
- 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@v4
- name: Check flake.lock
uses: ./
with:
flake-lock-path: flake.dirty.lock
_internal-strict-mode: true
run-x86_64-darwin-clean:
name: Run x86_64 Darwin (clean)
needs: build-check-typescript
runs-on: macos-12
steps:
- uses: actions/checkout@v4
- name: Check flake.lock
uses: ./
with:
_internal-strict-mode: true
run-x86_64-darwin-dirty:
name: Run x86_64 Darwin (dirty)
needs: build-check-typescript
runs-on: macos-12
steps:
- uses: actions/checkout@v4
- name: Check flake.lock
uses: ./
with:
flake-lock-path: flake.dirty.lock
_internal-strict-mode: true