Skip to content

Commit 41e4743

Browse files
committed
CI: Update Erlang, Ubuntu, container
Changes: - Bump ubuntu-24.04 - Pull images from ECR instead of Docker Hub - Add Erlang/OTP 28 to the version matrix - Merge Cover action into Tests - Fix cpp-coveralls installation
1 parent c6a86b2 commit 41e4743

File tree

2 files changed

+11
-24
lines changed

2 files changed

+11
-24
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -9,40 +9,27 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
otp: ['19.3', '25.3', 26, 27]
13-
runs-on: ubuntu-22.04
12+
otp: ['20', '25', '26', '27', '28']
13+
runs-on: ubuntu-24.04
1414
container:
15-
image: erlang:${{ matrix.otp }}
15+
image: public.ecr.aws/docker/library/erlang:${{ matrix.otp }}
1616
steps:
17-
- uses: actions/checkout@v3
18-
if: matrix.otp < '20.3'
1917
- uses: actions/checkout@v4
20-
if: matrix.otp >= '20.3'
18+
- run: ./configure --enable-gcov
2119
- run: rebar3 compile
2220
- run: rebar3 xref
2321
- run: rebar3 dialyzer
2422
- run: rebar3 eunit -v
25-
26-
cover:
27-
name: Cover
28-
needs: [tests]
29-
runs-on: ubuntu-22.04
30-
steps:
31-
- uses: actions/checkout@v4
32-
- uses: erlef/setup-beam@v1
33-
with:
34-
otp-version: 26
35-
rebar3-version: 3
36-
- run: ./configure --enable-gcov
37-
- run: rebar3 compile
38-
- run: rebar3 eunit -v
3923
- run: rebar3 eunit -v
40-
- run: pip install --user cpp-coveralls
41-
- run: cpp-coveralls -b `pwd` --verbose --gcov-options '\-lp' --dump c.json
4224
- name: Send to Coveralls
25+
if: matrix.otp == 27
4326
env:
4427
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4528
run: |
29+
apt-get -qq update
30+
apt-get -qq install pipx
31+
pipx install cpp-coveralls
32+
/github/home/.local/bin/cpp-coveralls -b `pwd` --verbose --gcov-options '\-lp' --dump c.json
4633
ADDJSONFILE=c.json COVERALLS=true rebar3 as test coveralls send
4734
curl -v -k https://coveralls.io/webhook \
4835
--header "Content-Type: application/json" \

.github/workflows/hexpm-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ on:
77

88
jobs:
99
release:
10-
runs-on: ubuntu-22.04
10+
runs-on: ubuntu-24.04
1111
container:
12-
image: erlang:26
12+
image: public.ecr.aws/docker/library/erlang
1313
steps:
1414
- name: Check out
1515
uses: actions/checkout@v4

0 commit comments

Comments
 (0)