Skip to content

Commit 8dced80

Browse files
committed
Remove tracing and update test matrix.
1 parent d241e78 commit 8dced80

26 files changed

+282
-1345
lines changed

Diff for: .github/workflows/perform-release.yml

+56-42
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ on:
88
required: true
99

1010
env:
11-
preferred-elixir: "1.15.x"
12-
preferred-otp: "26.x"
13-
cache-version: 2
11+
cache-version: 9
1412
commit-author-name: ${{ secrets.ACTIONS_COMMIT_AUTHOR_NAME }}
1513
commit-author-email: ${{ secrets.ACTIONS_COMMIT_AUTHOR_EMAIL }}
1614
MIX_ENV: test
@@ -23,36 +21,44 @@ concurrency:
2321
jobs:
2422
tests:
2523
name: Testing Before Performing Release
26-
runs-on: ubuntu-20.04
24+
runs-on: ubuntu-22.04
2725

2826
continue-on-error: ${{ matrix.type == 'optional' }}
2927
strategy:
3028
matrix:
3129
elixir:
32-
- "1.12.x"
33-
- "1.13.x"
34-
- "1.14.x"
30+
- "1.15"
31+
- "1.16"
32+
- "1.17"
33+
- "1.18"
3534
otp:
36-
- "23.x"
37-
- "24.x"
35+
- "25"
36+
- "26"
3837
type: [required]
3938
include:
4039
# Additional version combinations we want to check
4140
# See: https://github.com/elixir-lang/elixir/blob/main/lib/elixir/pages/compatibility-and-deprecations.md#compatibility-between-elixir-and-erlangotp
42-
# Only Elixir > 1.12 supports OTP 25
43-
- elixir: "1.13.x"
44-
otp: "25.x"
41+
# Only Elixir >= 1.17 supports OTP 27
42+
- elixir: "1.17"
43+
otp: "27"
4544
type: required
46-
- elixir: "1.14.x"
47-
otp: "25.x"
45+
- elixir: "1.18"
46+
otp: "27"
4847
type: required
49-
# Only Elixir < 1.14 supports OTP 22
50-
- elixir: "1.12.x"
51-
otp: "22.x"
48+
# Only Elixir <= 1.16 supports OTP 24
49+
- elixir: "1.14"
50+
otp: "24"
5251
type: required
53-
- elixir: "1.13.x"
54-
otp: "22.x"
52+
- elixir: "1.15"
53+
otp: "24"
5554
type: required
55+
- elixir: "1.16"
56+
otp: "24"
57+
type: required
58+
# Only Elixir <= 1.14 supports OTP 23, but erlef/setub-beam no longer supports it
59+
- elixir: "1.14"
60+
otp: "23"
61+
type: optional
5662

5763
steps:
5864
- uses: actions/checkout@v4
@@ -93,36 +99,44 @@ jobs:
9399

94100
types:
95101
name: Typechecking Before Performing Release
96-
runs-on: ubuntu-20.04
102+
runs-on: ubuntu-22.04
97103

98104
continue-on-error: ${{ matrix.type == 'optional' }}
99105
strategy:
100106
matrix:
101107
elixir:
102-
- "1.12.x"
103-
- "1.13.x"
104-
- "1.14.x"
108+
- "1.15"
109+
- "1.16"
110+
- "1.17"
111+
- "1.18"
105112
otp:
106-
- "23.x"
107-
- "24.x"
113+
- "25"
114+
- "26"
108115
type: [required]
109116
include:
110117
# Additional version combinations we want to check
111118
# See: https://github.com/elixir-lang/elixir/blob/main/lib/elixir/pages/compatibility-and-deprecations.md#compatibility-between-elixir-and-erlangotp
112-
# Only Elixir > 1.12 supports OTP 25
113-
- elixir: "1.13.x"
114-
otp: "25.x"
119+
# Only Elixir >= 1.17 supports OTP 27
120+
- elixir: "1.17"
121+
otp: "27"
122+
type: required
123+
- elixir: "1.18"
124+
otp: "27"
115125
type: required
116-
- elixir: "1.14.x"
117-
otp: "25.x"
126+
# Only Elixir <= 1.16 supports OTP 24
127+
- elixir: "1.14"
128+
otp: "24"
118129
type: required
119-
# Only Elixir < 1.14 supports OTP 22
120-
- elixir: "1.12.x"
121-
otp: "22.x"
130+
- elixir: "1.15"
131+
otp: "24"
122132
type: required
123-
- elixir: "1.13.x"
124-
otp: "22.x"
133+
- elixir: "1.16"
134+
otp: "24"
125135
type: required
136+
# Only Elixir <= 1.14 supports OTP 23, but erlef/setub-beam no longer supports it
137+
- elixir: "1.14"
138+
otp: "23"
139+
type: optional
126140

127141
steps:
128142
- uses: actions/checkout@v4
@@ -174,7 +188,7 @@ jobs:
174188

175189
lints:
176190
name: Linting Before Performing Release
177-
runs-on: ubuntu-20.04
191+
runs-on: ubuntu-22.04
178192

179193
steps:
180194
- uses: actions/checkout@v4
@@ -185,8 +199,8 @@ jobs:
185199
id: beam-versions
186200
uses: erlef/setup-beam@v1
187201
with:
188-
elixir-version: ${{ env.preferred-elixir }}
189-
otp-version: ${{ env.preferred-otp }}
202+
version-file: ".tool-versions"
203+
version-type: "strict"
190204

191205
- name: Restore mix dependency installation cache
192206
id: mix-deps-get-cache
@@ -216,7 +230,7 @@ jobs:
216230

217231
perform-release:
218232
name: Performing Release
219-
runs-on: ubuntu-20.04
233+
runs-on: ubuntu-22.04
220234

221235
needs:
222236
- tests
@@ -233,8 +247,8 @@ jobs:
233247
id: beam-versions
234248
uses: erlef/setup-beam@v1
235249
with:
236-
elixir-version: ${{ env.preferred-elixir }}
237-
otp-version: ${{ env.preferred-otp }}
250+
version-file: ".tool-versions"
251+
version-type: "strict"
238252

239253
- name: Restore Mix Cache
240254
id: mix-cache
@@ -276,7 +290,7 @@ jobs:
276290
277291
results:
278292
name: Perform Release Results
279-
runs-on: ubuntu-20.04
293+
runs-on: ubuntu-22.04
280294

281295
if: ${{ always() }}
282296
needs:

Diff for: .github/workflows/publish-static-pages.yml

+20-22
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
name: Publish Static Pages
22

33
env:
4-
preferred-elixir: "1.15.x"
5-
preferred-otp: "26.x"
6-
cache-version: 1
4+
cache-version: 9
75
MIX_ENV: test
86

97
on:
@@ -29,7 +27,7 @@ jobs:
2927
name: github-pages
3028
url: ${{ steps.deployment.outputs.page_url }}
3129

32-
runs-on: ubuntu-20.04
30+
runs-on: ubuntu-22.04
3331

3432
steps:
3533
- uses: actions/checkout@v4
@@ -38,8 +36,8 @@ jobs:
3836
id: beam-versions
3937
uses: erlef/setup-beam@v1
4038
with:
41-
elixir-version: ${{ env.preferred-elixir }}
42-
otp-version: ${{ env.preferred-otp }}
39+
version-file: ".tool-versions"
40+
version-type: "strict"
4341

4442
- name: Restore mix dependency installation cache
4543
id: mix-deps-get-cache
@@ -67,7 +65,7 @@ jobs:
6765
run: mix benchmarks
6866

6967
- name: Store benchmark reports
70-
uses: actions/upload-artifact@v3
68+
uses: actions/upload-artifact@v4
7169
with:
7270
name: bench
7371
path: bench
@@ -79,7 +77,7 @@ jobs:
7977
name: github-pages
8078
url: ${{ steps.deployment.outputs.page_url }}
8179

82-
runs-on: ubuntu-20.04
80+
runs-on: ubuntu-22.04
8381

8482
steps:
8583
- uses: actions/checkout@v4
@@ -88,8 +86,8 @@ jobs:
8886
id: beam-versions
8987
uses: erlef/setup-beam@v1
9088
with:
91-
elixir-version: ${{ env.preferred-elixir }}
92-
otp-version: ${{ env.preferred-otp }}
89+
version-file: ".tool-versions"
90+
version-type: "strict"
9391

9492
- name: Restore mix dependency installation cache
9593
id: mix-deps-get-cache
@@ -117,7 +115,7 @@ jobs:
117115
run: mix coverage
118116

119117
- name: Store coverage reports
120-
uses: actions/upload-artifact@v3
118+
uses: actions/upload-artifact@v4
121119
with:
122120
name: cover
123121
path: cover
@@ -129,7 +127,7 @@ jobs:
129127
name: github-pages
130128
url: ${{ steps.deployment.outputs.page_url }}
131129

132-
runs-on: ubuntu-20.04
130+
runs-on: ubuntu-22.04
133131

134132
steps:
135133
- uses: actions/checkout@v4
@@ -138,8 +136,8 @@ jobs:
138136
id: beam-versions
139137
uses: erlef/setup-beam@v1
140138
with:
141-
elixir-version: ${{ env.preferred-elixir }}
142-
otp-version: ${{ env.preferred-otp }}
139+
version-file: ".tool-versions"
140+
version-type: "strict"
143141

144142
- name: Restore mix dependency installation cache
145143
id: mix-deps-get-cache
@@ -167,7 +165,7 @@ jobs:
167165
run: mix docs
168166

169167
- name: Store generated docs
170-
uses: actions/upload-artifact@v3
168+
uses: actions/upload-artifact@v4
171169
with:
172170
name: doc
173171
path: doc
@@ -179,7 +177,7 @@ jobs:
179177
name: github-pages
180178
url: ${{ steps.deployment.outputs.page_url }}
181179

182-
runs-on: ubuntu-20.04
180+
runs-on: ubuntu-22.04
183181

184182
needs:
185183
- benchmarks
@@ -193,8 +191,8 @@ jobs:
193191
id: beam-versions
194192
uses: erlef/setup-beam@v1
195193
with:
196-
elixir-version: ${{ env.preferred-elixir }}
197-
otp-version: ${{ env.preferred-otp }}
194+
version-file: ".tool-versions"
195+
version-type: "strict"
198196

199197
- name: Restore mix dependency installation cache
200198
id: mix-deps-get-cache
@@ -219,7 +217,7 @@ jobs:
219217
run: mix deps.compile
220218

221219
- name: Fetch generated pages
222-
uses: actions/download-artifact@v3
220+
uses: actions/download-artifact@v4
223221

224222
- name: Collect static files
225223
run: mix static.collect
@@ -228,17 +226,17 @@ jobs:
228226
uses: actions/configure-pages@v2
229227

230228
- name: Upload static artifacts to Github Pages
231-
uses: actions/upload-pages-artifact@v1
229+
uses: actions/upload-pages-artifact@v3
232230
with:
233231
path: "./static"
234232

235233
- name: Deploy artifact to GitHub Pages
236234
id: deployment
237-
uses: actions/deploy-pages@v1
235+
uses: actions/deploy-pages@v4
238236

239237
results:
240238
name: Publish Static Page Action Results
241-
runs-on: ubuntu-20.04
239+
runs-on: ubuntu-22.04
242240

243241
if: ${{ always() }}
244242
needs:

Diff for: .github/workflows/test-benchmarks.yml

+5-7
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ on:
44
- workflow_dispatch
55

66
env:
7-
preferred-elixir: "1.15.x"
8-
preferred-otp: "26.x"
9-
cache-version: 2
7+
cache-version: 9
108
MIX_ENV: test
119

1210
concurrency:
@@ -16,7 +14,7 @@ concurrency:
1614
jobs:
1715
benchmarks:
1816
name: Run Benchmarks
19-
runs-on: ubuntu-20.04
17+
runs-on: ubuntu-22.04
2018

2119
steps:
2220
- uses: actions/checkout@v4
@@ -25,8 +23,8 @@ jobs:
2523
id: beam-versions
2624
uses: erlef/setup-beam@v1
2725
with:
28-
elixir-version: ${{ env.preferred-elixir }}
29-
otp-version: ${{ env.preferred-otp }}
26+
version-file: ".tool-versions"
27+
version-type: "strict"
3028

3129
- name: Restore mix dependency installation cache
3230
id: mix-deps-get-cache
@@ -55,7 +53,7 @@ jobs:
5553

5654
results:
5755
name: Test Benchmarks Action Results
58-
runs-on: ubuntu-20.04
56+
runs-on: ubuntu-22.04
5957

6058
if: ${{ always() }}
6159
needs:

0 commit comments

Comments
 (0)