Skip to content

Commit d2ec574

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 f872752 commit d2ec574

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,17 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
otp: ['20', '21', '22', '23', '24', '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 --enable-gcov
1819
- run: rebar3 compile
1920
- run: rebar3 xref
2021
- run: rebar3 dialyzer
2122
- run: rebar3 eunit -v
22-
23-
cover:
24-
name: Cover
25-
needs: [tests]
26-
runs-on: ubuntu-24.04
27-
steps:
28-
- uses: actions/checkout@v4
29-
- uses: erlef/setup-beam@v1
30-
with:
31-
otp-version: '27'
32-
rebar3-version: "3.24.0"
33-
- run: ./configure --enable-gcov
3423
- run: rebar3 compile
3524
- name: Run tests to obtain Erlang coverage
3625
run: |
@@ -42,12 +31,15 @@ jobs:
4231
mv unload_test.erl test/
4332
rebar3 eunit -v
4433
mv eunit.coverdata _build/test/cover/
45-
- run: pip install --user cpp-coveralls
46-
- run: cpp-coveralls -b `pwd` --verbose --gcov-options '\-lp' --dump c.json
4734
- name: Send to Coveralls
35+
if: matrix.otp == 27
4836
env:
4937
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5038
run: |
39+
apt-get -qq update
40+
apt-get -qq install pipx
41+
pipx install cpp-coveralls
42+
/github/home/.local/bin/cpp-coveralls -b `pwd` --verbose --gcov-options '\-lp' --dump c.json
5143
ADDJSONFILE=c.json COVERALLS=true rebar3 as test coveralls send
5244
curl -v -k https://coveralls.io/webhook \
5345
--header "Content-Type: application/json" \

0 commit comments

Comments
 (0)