@@ -10,68 +10,45 @@ permissions:
1010 contents : read
1111
1212jobs :
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
0 commit comments