10
10
paths-ignore :
11
11
- " README.md"
12
12
13
-
14
13
permissions :
15
14
contents : read
16
15
@@ -19,36 +18,71 @@ jobs:
19
18
name : test
20
19
runs-on : ${{ github.repository_owner == 'coder' && 'depot-macos-latest' || 'macos-latest'}}
21
20
steps :
21
+ - name : Harden Runner
22
+ uses : step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
23
+ with :
24
+ egress-policy : audit
25
+
22
26
- name : Checkout
23
27
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
24
28
with :
25
29
fetch-depth : 1
30
+
26
31
- name : Switch XCode Version
27
- uses : maxim-lobanov/setup-xcode@v1
32
+ uses : maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0
28
33
with :
29
- xcode-version : ' 16.0.0'
30
- - run : |
31
- make test
34
+ # (ThomasK33): depot.dev does not yet support Xcode 16.1 or 16.2 GA, thus we're stuck with 16.0.0 for now.
35
+ # I've already reached out, so hopefully this comment will soon be obsolete.
36
+ xcode-version : " 16.0.0"
37
+
38
+ - name : Setup Nix
39
+ uses : ./.github/actions/nix-devshell
40
+
41
+ - run : make
42
+
43
+ - run : make test
44
+
32
45
format :
33
46
name : fmt
34
47
runs-on : ${{ github.repository_owner == 'coder' && 'depot-macos-latest' || 'macos-latest'}}
35
48
steps :
49
+ - name : Harden Runner
50
+ uses : step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4
51
+ with :
52
+ egress-policy : audit
53
+
36
54
- name : Checkout
37
55
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
38
56
with :
39
57
fetch-depth : 1
40
- - run : |
41
- make fmt
58
+
59
+ - name : Switch XCode Version
60
+ uses : maxim-lobanov/setup-xcode@60606e260d2fc5762a71e64e74b2174e8ea3c8bd # v1.6.0
61
+ with :
62
+ # (ThomasK33): depot.dev does not yet support Xcode 16.1 or 16.2 GA, thus we're stuck with 16.0.0 for now.
63
+ # I've already reached out, so hopefully this comment will soon be obsolete.
64
+ xcode-version : " 16.0.0"
65
+
66
+ - name : Setup Nix
67
+ uses : ./.github/actions/nix-devshell
68
+
69
+ - run : make fmt
70
+
42
71
lint :
43
72
name : lint
44
73
runs-on : ${{ github.repository_owner == 'coder' && 'depot-macos-latest' || '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