Skip to content

Commit ca580cf

Browse files
committed
Update pipeline to run with OTP 27
1 parent 387b7d0 commit ca580cf

File tree

1 file changed

+36
-5
lines changed

1 file changed

+36
-5
lines changed

.github/workflows/erlang.yml

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ env:
77

88
jobs:
99

10-
build:
11-
12-
runs-on: ubuntu-20.04
10+
OTP25:
11+
runs-on: ubuntu-24.04
1312

1413
strategy:
1514
matrix:
@@ -24,12 +23,12 @@ jobs:
2423
otp-version: ${{matrix.otp}}
2524
rebar3-version: ${{matrix.rebar}}
2625
- name: Restore _build
27-
uses: actions/cache@v2
26+
uses: actions/cache@v4
2827
with:
2928
path: _build
3029
key: _build-cache-for-os-${{runner.os}}-otp-${{steps.setup-beam.outputs.otp-version}}-rebar3-${{steps.setup-beam.outputs.rebar3-version}}-hash-${{hashFiles('rebar.lock')}}
3130
- name: Restore rebar3's cache
32-
uses: actions/cache@v2
31+
uses: actions/cache@v4
3332
with:
3433
path: ~/.cache/rebar3
3534
key: rebar3-cache-for-os-${{runner.os}}-otp-${{steps.setup-beam.outputs.otp-version}}-rebar3-${{steps.setup-beam.outputs.rebar3-version}}-hash-${{hashFiles('rebar.lock')}}
@@ -39,3 +38,35 @@ jobs:
3938
run: rebar3 format --verify
4039
- name: Run tests and verifications
4140
run: rebar3 test
41+
42+
OTP27:
43+
runs-on: ubuntu-24.04
44+
45+
strategy:
46+
matrix:
47+
otp: ['27.3.4']
48+
rebar: ['3.24.0']
49+
50+
steps:
51+
- uses: actions/checkout@v2
52+
- uses: erlef/setup-beam@v1
53+
id: setup-beam
54+
with:
55+
otp-version: ${{matrix.otp}}
56+
rebar3-version: ${{matrix.rebar}}
57+
- name: Restore _build
58+
uses: actions/cache@v4
59+
with:
60+
path: _build
61+
key: _build-cache-for-os-${{runner.os}}-otp-${{steps.setup-beam.outputs.otp-version}}-rebar3-${{steps.setup-beam.outputs.rebar3-version}}-hash-${{hashFiles('rebar.lock')}}
62+
- name: Restore rebar3's cache
63+
uses: actions/cache@v4
64+
with:
65+
path: ~/.cache/rebar3
66+
key: rebar3-cache-for-os-${{runner.os}}-otp-${{steps.setup-beam.outputs.otp-version}}-rebar3-${{steps.setup-beam.outputs.rebar3-version}}-hash-${{hashFiles('rebar.lock')}}
67+
- name: Compile
68+
run: rebar3 compile
69+
- name: Format check
70+
run: rebar3 format --verify
71+
- name: Run tests and verifications
72+
run: rebar3 test

0 commit comments

Comments
 (0)