Skip to content

Commit 20b7e24

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 63a0f8b commit 20b7e24

2 files changed

Lines changed: 11 additions & 22 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,41 +9,30 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
otp: [20, 25, 26, 27]
12+
otp: ['20', '25', '26', '27', '28']
1313
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@v4
18-
- run: ./configure
18+
- run: ./configure --enable-gcov
1919
- run: make
2020
- run: rebar3 compile
2121
- run: rebar3 xref
2222
- run: rebar3 dialyzer
2323
- run: rebar3 eunit -v
2424
if: matrix.otp >= 26
25-
26-
cover:
27-
name: Cover
28-
needs: [tests]
29-
runs-on: ubuntu-24.04
30-
steps:
31-
- uses: actions/checkout@v4
32-
- name: Get Erlang/OTP
33-
uses: erlef/setup-beam@v1
34-
with:
35-
otp-version: 26
36-
rebar3-version: '3.24.0'
37-
- run: ./configure --enable-gcov
38-
- run: rebar3 compile
3925
- run: rebar3 eunit -v
40-
- run: rebar3 eunit -v
41-
- run: pip install --user cpp-coveralls
42-
- run: cpp-coveralls -b `pwd` --verbose --gcov-options '\-lp' --dump c.json
26+
if: matrix.otp >= 26
4327
- name: Send to Coveralls
28+
if: matrix.otp == 27
4429
env:
4530
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4631
run: |
32+
apt-get -qq update
33+
apt-get -qq install pipx
34+
pipx install cpp-coveralls
35+
/github/home/.local/bin/cpp-coveralls -b `pwd` --verbose --gcov-options '\-lp' --dump c.json
4736
ADDJSONFILE=c.json COVERALLS=true rebar3 as test coveralls send
4837
curl -v -k https://coveralls.io/webhook \
4938
--header "Content-Type: application/json" \

.github/workflows/hexpm-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
- name: Get Erlang/OTP
1717
uses: erlef/setup-beam@v1
1818
with:
19-
otp-version: 26
20-
rebar3-version: '3.24.0'
19+
otp-version: 27
20+
rebar3-version: '3.25.0'
2121

2222
- name: Generate documentation
2323
run: rebar3 edoc

0 commit comments

Comments
 (0)