Skip to content

Commit a8290be

Browse files
authored
Merge pull request #59 from esl/upgrades
Upgrade dependencies and runtime versions
2 parents 382fb95 + a0ee19d commit a8290be

File tree

3 files changed

+41
-64
lines changed

3 files changed

+41
-64
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -10,68 +10,45 @@ permissions:
1010
contents: read
1111

1212
jobs:
13-
build:
14-
runs-on: ubuntu-latest
15-
container:
16-
image: erlang:${{ matrix.erlang-version }}
13+
tests:
14+
name: Tests-OTP${{matrix.otp}}
15+
runs-on: ${{ matrix.os }}
1716
strategy:
1817
matrix:
19-
erlang-version: [25, 26, 27]
18+
os: ['ubuntu-24.04']
19+
otp: ['28', '27', '26']
20+
rebar3: ['3.25.0']
2021
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 }}
22+
- uses: actions/checkout@v4
23+
- uses: erlef/setup-beam@v1
24+
with:
25+
otp-version: ${{ matrix.otp }}
26+
rebar3-version: ${{ matrix.rebar3 }}
27+
- run: rebar3 as test compile
28+
- run: rebar3 cover_tests
29+
- run: rebar3 as test codecov analyze
30+
- uses: codecov/codecov-action@v5
31+
with:
32+
files: codecov.json
33+
token: ${{ secrets.CODECOV_TOKEN }}
34+
fail_ci_if_error: true
35+
verbose: true
36+
37+
static_tools:
38+
name: Static-OTP${{matrix.otp}}
39+
runs-on: ${{ matrix.os }}
3840
strategy:
3941
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
51-
52-
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-
63-
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-
42+
os: ['ubuntu-24.04']
43+
otp: ['28', '27', '26']
44+
rebar3: ['3.25.0']
7445
steps:
75-
- uses: actions/checkout@v3
76-
- name: Run ex_doc
77-
run: rebar3 ex_doc
46+
- uses: actions/checkout@v4
47+
- uses: erlef/setup-beam@v1
48+
with:
49+
otp-version: ${{ matrix.otp }}
50+
rebar3-version: ${{ matrix.rebar3 }}
51+
- run: rebar3 xref
52+
- run: rebar3 dialyzer
53+
- run: rebar3 format_check
54+
- 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: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
unmatched_returns,
55
error_handling,
66
extra_return,
7-
missing_return,
8-
underspecs
9-
% overspecs, specdiffs
7+
missing_return
8+
% underspecs, overspecs, specdiffs
109
]}
1110
]}.
1211

@@ -38,10 +37,10 @@
3837
{test, [
3938
{deps, [
4039
{logger_debug_h, "0.2.0"},
41-
{meck, "0.9.2"}
40+
{meck, "1.0.0"}
4241
]},
4342
{plugins, [
44-
{rebar3_codecov, "0.6.0"}
43+
{rebar3_codecov, "0.7.0"}
4544
]}
4645
]}
4746
]}.

0 commit comments

Comments
 (0)