|
9 | 9 | permissions: |
10 | 10 | contents: read |
11 | 11 |
|
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'] |
51 | 18 |
|
| 19 | +jobs: |
| 20 | + tests: |
| 21 | + name: Tests-${{matrix.otp}} |
| 22 | + strategy: ${{ inputs.strategy }} |
| 23 | + runs-on: ${{ matrix.os }} |
52 | 24 | 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 }} |
63 | 44 | 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}} |
74 | 50 | 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 |
0 commit comments