Skip to content

Commit 7497702

Browse files
committed
Upgrade dependencies and runtime versions
1 parent 382fb95 commit 7497702

File tree

3 files changed

+43
-64
lines changed

3 files changed

+43
-64
lines changed

.github/workflows/ci.yml

Lines changed: 40 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -9,69 +9,47 @@ on:
99
permissions:
1010
contents: read
1111

12-
jobs:
13-
build:
14-
runs-on: ubuntu-latest
15-
container:
16-
image: erlang:${{ matrix.erlang-version }}
17-
strategy:
18-
matrix:
19-
erlang-version: [25, 26, 27]
20-
steps:
21-
- uses: actions/checkout@v3
22-
- name: Compile
23-
run: rebar3 as test compile
24-
- name: Run tests
25-
run: rebar3 cover_tests
26-
- name: Send test coverage report
27-
run: rebar3 as test codecov analyze
28-
- name: Upload coverage reports to Codecov
29-
uses: codecov/codecov-action@v3
30-
env:
31-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
32-
33-
dialyzer:
34-
runs-on: ubuntu-latest
35-
36-
container:
37-
image: erlang:${{ matrix.erlang-version }}
38-
strategy:
39-
matrix:
40-
erlang-version: [25, 26, 27]
41-
steps:
42-
- uses: actions/checkout@v3
43-
- name: Run dialyzer
44-
run: rebar3 dialyzer
45-
46-
xref:
47-
runs-on: ubuntu-latest
48-
49-
container:
50-
image: erlang:25
12+
inputs:
13+
strategy:
14+
matrix:
15+
os: ['ubuntu-24.04']
16+
otp: ['28', '27', '26']
17+
rebar3: ['3.25.0']
5118

19+
jobs:
20+
tests:
21+
name: Tests-${{matrix.otp}}
22+
strategy: ${{ inputs.strategy }}
23+
runs-on: ${{ matrix.os }}
5224
steps:
53-
- uses: actions/checkout@v3
54-
- name: Run xref
55-
run: rebar3 xref
56-
57-
erlfmt:
58-
runs-on: ubuntu-latest
59-
60-
container:
61-
image: erlang:25
62-
25+
- uses: actions/checkout@v4
26+
- uses: erlef/setup-beam@v1
27+
with:
28+
otp-version: ${{ matrix.otp }}
29+
rebar3-version: ${{matrix.rebar3}}
30+
- run: rebar3 as test compile
31+
- run: rebar3 cover_tests
32+
- run: rebar3 as test codecov analyze
33+
- uses: codecov/codecov-action@v5
34+
with:
35+
files: codecov.json
36+
token: ${{ secrets.CODECOV_TOKEN }}
37+
fail_ci_if_error: true
38+
verbose: true
39+
40+
static_tools:
41+
name: Tests-${{matrix.otp}}
42+
strategy: ${{ inputs.strategy }}
43+
runs-on: ${{ matrix.os }}
6344
steps:
64-
- uses: actions/checkout@v3
65-
- name: Run erlfmt
66-
run: rebar3 format_check
67-
68-
docs:
69-
runs-on: ubuntu-latest
70-
71-
container:
72-
image: erlang:25
73-
45+
- uses: actions/checkout@v4
46+
- uses: erlef/setup-beam@v1
47+
with:
48+
otp-version: ${{ matrix.otp }}
49+
rebar3-version: ${{matrix.rebar3}}
7450
steps:
75-
- uses: actions/checkout@v3
76-
- name: Run ex_doc
77-
run: rebar3 ex_doc
51+
- uses: actions/checkout@v4
52+
- run: rebar3 xref
53+
- run: rebar3 dialyzer
54+
- run: rebar3 format_check
55+
- run: rebar3 ex_doc

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
_build/
2+
doc/
23
# vim temporary files
34
*.sw*

rebar.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838
{test, [
3939
{deps, [
4040
{logger_debug_h, "0.2.0"},
41-
{meck, "0.9.2"}
41+
{meck, "1.0.0"}
4242
]},
4343
{plugins, [
44-
{rebar3_codecov, "0.6.0"}
44+
{rebar3_codecov, "0.7.0"}
4545
]}
4646
]}
4747
]}.

0 commit comments

Comments
 (0)