Skip to content

Commit 2c7f3c4

Browse files
feat: update CI to use erlang 28
1 parent 334f127 commit 2c7f3c4

2 files changed

Lines changed: 35 additions & 38 deletions

File tree

.github/workflows/build.yml

Lines changed: 33 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
name: ci
1+
name: CI
2+
23
on:
34
push:
45
branches:
@@ -9,52 +10,48 @@ on:
910

1011
jobs:
1112
build:
13+
runs-on: ubuntu-latest
1214
strategy:
1315
matrix:
14-
include:
15-
- image: erlang:24
16-
- image: erlang:25
17-
- image: erlang:26
18-
runs-on: ubuntu-latest
19-
container:
20-
image: ${{ matrix.image }}
21-
options: "--entrypoint /bin/bash"
22-
16+
combo:
17+
- otp-version: '25.2'
18+
rebar3-version: '3.18.0'
19+
- otp-version: '26.2'
20+
rebar3-version: '3.23.0'
21+
- otp-version: '27.2'
22+
rebar3-version: '3.24.0'
23+
- otp-version: '28.0'
24+
rebar3-version: '3.25.0'
2325
steps:
24-
# Setup
25-
- name: Checkout
26-
uses: actions/checkout@v3
27-
- uses: webfactory/ssh-agent@v0.7.0
26+
- uses: actions/checkout@v4
27+
28+
- uses: webfactory/ssh-agent@v0.9.0
2829
with:
2930
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
3031

31-
# Inspect rebar3 version
32-
- name: Rebar version
33-
run: rebar3 --version
32+
- uses: erlef/setup-beam@v1.18
33+
with:
34+
otp-version: ${{ matrix.combo.otp-version }}
35+
rebar3-version: ${{ matrix.combo.rebar3-version }}
3436

35-
# PRE Checks
36-
- name: Checks
37-
run: rebar3 check
37+
- uses: actions/cache@v4
38+
id: rebar3-cache
39+
with:
40+
path: |
41+
~/.cache/rebar3
42+
_build
43+
key: ${{ runner.os }}-${{ runner.arch }}-${{ matrix.combo.otp-version }}-${{ matrix.combo.rebar3-version }}-${{ hashFiles('rebar.lock') }}
3844

39-
# Compile
40-
- name: Compile
41-
run: rebar3 compile
45+
- run: rebar3 check
4246

43-
# Tests
44-
- name: Run tests
45-
run: rebar3 test_ci
46-
- name: Store test logs
47-
uses: actions/upload-artifact@v1
48-
if: always()
49-
with:
50-
name: ct-logs
51-
path: _build/test/logs
47+
- run: rebar3 compile
48+
49+
- run: rebar3 test_ci
5250

53-
# Cover reports
5451
- name: Create Cover Reports
5552
run: rebar3 cover
5653

57-
- name: Publish Test Report
58-
uses: nomasystems/action-junit-report@v2
54+
- uses: test-summary/action@v2
55+
if: always()
5956
with:
60-
report_paths: '_build/test/logs/**/report.xml'
57+
paths: '_build/test/logs/**/report.xml'

rebar.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
]}.
66

77
{project_plugins, [
8-
{erlfmt, {git, "git@github.com:WhatsApp/erlfmt.git", {branch, "main"}}}
8+
erlfmt
99
]}.
1010
{erlfmt, [write]}.
1111

@@ -28,7 +28,7 @@
2828
{profiles, [
2929
{test, [
3030
{deps, [
31-
{nct_util, {git, "git@github.com:nomasystems/nct_util.git", {branch, "main"}}}
31+
{nct_util, {git, "https://github.com/nomasystems/nct_util.git", {branch, "main"}}}
3232
]}
3333
]}
3434
]}.

0 commit comments

Comments
 (0)