Skip to content

Commit 5ef951e

Browse files
committed
Fix OTP Version for CI
1 parent bb1c87a commit 5ef951e

File tree

1 file changed

+7
-25
lines changed

1 file changed

+7
-25
lines changed

.github/workflows/part_test.yml

+7-25
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,6 @@ env:
77
ERL_AFLAGS: "-enable-feature all"
88

99
jobs:
10-
detectToolVersions:
11-
name: "Detect Tool Versions"
12-
13-
runs-on: ubuntu-latest
14-
15-
outputs:
16-
otpVersion: "${{ steps.toolVersions.outputs.OTP_VERSION }}"
17-
elixirVersion: "${{ steps.toolVersions.outputs.ELIXIR_VERSION }}"
18-
19-
steps:
20-
- uses: actions/checkout@v4
21-
- name: "Read .tool-versions"
22-
id: toolVersions
23-
run: |
24-
OTP_VERSION="$(cat .tool-versions | grep erlang | cut -d' ' -f2-)"
25-
echo OTP: $OTP_VERSION
26-
echo "OTP_VERSION=${OTP_VERSION}" >> $GITHUB_OUTPUT
27-
28-
ELIXIR_VERSION="$(cat .tool-versions | grep elixir | cut -d' ' -f2-)"
29-
echo Rebar: $ELIXIR_VERSION
30-
echo "ELIXIR_VERSION=${ELIXIR_VERSION}" >> $GITHUB_OUTPUT
31-
3210
mix_format:
3311
name: mix format
3412

@@ -61,31 +39,35 @@ jobs:
6139

6240
runs-on: ubuntu-latest
6341

64-
needs: ["detectToolVersions"]
65-
6642
strategy:
6743
fail-fast: false
6844
matrix:
6945
include:
7046
- elixir: "1.15.0"
47+
otp: "26.2.5.6"
7148
unstable: false
7249
- elixir: "1.15.8"
50+
otp: "26.2.5.6"
7351
unstable: false
7452
- elixir: "1.16.3"
53+
otp: "26.2.5.6"
7554
unstable: false
7655
- elixir: "1.17.3"
56+
otp: "26.2.5.6"
7757
unstable: false
7858
- elixir: "1.18.0"
59+
otp: "27.2"
7960
unstable: false
8061
- elixir: "main"
62+
otp: "27.2"
8163
unstable: true
8264

8365
steps:
8466
- uses: actions/checkout@v4
8567
- uses: erlef/setup-beam@v1
8668
id: setupBEAM
8769
with:
88-
otp-version: "${{ needs.detectToolVersions.outputs.otpVersion }}"
70+
otp-version: "${{ matrix.otp }}"
8971
elixir-version: "${{ matrix.elixir }}"
9072
version-type: strict
9173
- uses: actions/cache@v4

0 commit comments

Comments
 (0)