Skip to content

Commit 406faf3

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 edd1992 commit 406faf3

File tree

2 files changed

+12
-17
lines changed

2 files changed

+12
-17
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,38 +9,31 @@ 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:
1717
- uses: actions/checkout@v3
1818
if: matrix.otp < '20.3'
1919
- uses: actions/checkout@v4
2020
if: matrix.otp >= '20.3'
21-
- run: ./configure
21+
- run: ./configure --enable-gcov
2222
- run: make
2323
- run: rebar3 compile
2424
- run: rebar3 xref
2525
- run: rebar3 dialyzer
2626
- run: rebar3 eunit -v
27-
28-
cover:
29-
name: Cover
30-
needs: [tests]
31-
runs-on: ubuntu-20.04
32-
steps:
33-
- uses: actions/checkout@v4
34-
- run: ./configure --enable-gcov
35-
- run: rebar3 compile
36-
- run: rebar3 eunit -v
3727
- run: rebar3 eunit -v
38-
- run: pip install --user cpp-coveralls
39-
- run: cpp-coveralls -b `pwd` --verbose --gcov-options '\-lp' --dump c.json
4028
- name: Send to Coveralls
29+
if: matrix.otp == 27
4130
env:
4231
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4332
run: |
33+
apt-get -qq update
34+
apt-get -qq install pipx
35+
pipx install cpp-coveralls
36+
/github/home/.local/bin/cpp-coveralls -b `pwd` --verbose --gcov-options '\-lp' --dump c.json
4437
ADDJSONFILE=c.json COVERALLS=true rebar3 as test coveralls send
4538
curl -v -k https://coveralls.io/webhook \
4639
--header "Content-Type: application/json" \

.github/workflows/hexpm-release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ on:
77

88
jobs:
99
release:
10-
runs-on: ubuntu-20.04
10+
runs-on: ubuntu-24.04
11+
container:
12+
image: public.ecr.aws/docker/library/erlang
1113
steps:
1214
- name: Check out
1315
uses: actions/checkout@v4

0 commit comments

Comments
 (0)