Skip to content

Commit a59798f

Browse files
committed
Simplify pipeline
1 parent ca580cf commit a59798f

File tree

1 file changed

+6
-36
lines changed

1 file changed

+6
-36
lines changed

.github/workflows/erlang.yml

Lines changed: 6 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@ env:
66
ERL_FLAGS: "-enable-feature all"
77

88
jobs:
9-
10-
OTP25:
9+
build:
1110
runs-on: ubuntu-24.04
1211

1312
strategy:
1413
matrix:
15-
otp: ['25.2.1']
16-
rebar: ['3.20.0']
14+
include:
15+
- otp: '25.2.1'
16+
rebar: '3.20.0'
17+
- otp: '27.3.4'
18+
rebar: '3.24.0'
1719

1820
steps:
1921
- uses: actions/checkout@v2
@@ -38,35 +40,3 @@ jobs:
3840
run: rebar3 format --verify
3941
- name: Run tests and verifications
4042
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)