10
10
paths-ignore :
11
11
- " README.md"
12
12
13
-
14
13
permissions :
15
14
contents : read
16
15
17
16
jobs :
18
17
test :
19
18
name : test
20
- runs-on : ${{ github.repository_owner == 'coder' && 'depot-macos-latest' || 'macos-latest'}}
19
+ # runs-on: ${{ github.repository_owner == 'coder' && 'depot-macos-latest' || 'macos-latest'}}
20
+ runs-on : macos-latest
21
21
steps :
22
+ - name : Harden Runner
23
+ uses : step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
24
+ with :
25
+ egress-policy : audit
26
+
22
27
- name : Checkout
23
28
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
24
29
with :
25
30
fetch-depth : 1
31
+
26
32
- name : Switch XCode Version
27
- uses : maxim-lobanov/setup-xcode@v1
33
+ uses : maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0
28
34
with :
29
- xcode-version : ' 16.0.0'
30
- - run : |
31
- make test
35
+ xcode-version : " 16.1.0"
36
+
37
+ - name : Setup Nix
38
+ uses : ./.github/actions/nix-devshell
39
+
40
+ - run : make
41
+
42
+ - run : make test
43
+
32
44
format :
33
45
name : fmt
34
- runs-on : ${{ github.repository_owner == 'coder' && 'depot-macos-latest' || 'macos-latest'}}
46
+ # depot.dev does not yet support Xcode 16.1 GA or 16.2, thus we're stuck with GitHub hosted runners for now
47
+ #
48
+ # runs-on: ${{ github.repository_owner == 'coder' && 'depot-macos-latest' || 'macos-latest'}}
49
+ runs-on : macos-latest
35
50
steps :
51
+ - name : Harden Runner
52
+ uses : step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
53
+ with :
54
+ egress-policy : audit
55
+
36
56
- name : Checkout
37
57
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
38
58
with :
39
59
fetch-depth : 1
40
- - run : |
41
- make fmt
60
+
61
+ - name : Switch XCode Version
62
+ uses : maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0
63
+ with :
64
+ xcode-version : " 16.1.0"
65
+
66
+ - name : Setup Nix
67
+ uses : ./.github/actions/nix-devshell
68
+
69
+ - run : make fmt
42
70
lint :
43
71
name : lint
44
- runs-on : ${{ github.repository_owner == 'coder' && 'depot-macos-latest' || 'macos-latest'}}
72
+ # runs-on: ${{ github.repository_owner == 'coder' && 'depot-macos-latest' || 'macos-latest'}}
73
+ runs-on : macos-latest
45
74
steps :
75
+ - name : Harden Runner
76
+ uses : step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
77
+ with :
78
+ egress-policy : audit
79
+
46
80
- name : Checkout
47
81
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
48
82
with :
49
83
fetch-depth : 1
50
- - name : Install Swiftlint
51
- run : |
52
- brew install swiftlint
53
- - run : |
54
- make lint
84
+
85
+ - name : Setup Nix
86
+ uses : ./.github/actions/nix-devshell
87
+
88
+ - run : make lint
0 commit comments