|
| 1 | +--- |
1 | 2 | name: Erlang CI |
2 | 3 |
|
3 | | -on: [push, pull_request] |
| 4 | +"on": [push, pull_request] |
4 | 5 |
|
5 | 6 | env: |
6 | 7 | ERL_FLAGS: "-enable-feature all" |
|
9 | 10 |
|
10 | 11 | build: |
11 | 12 |
|
12 | | - runs-on: ubuntu-20.04 |
| 13 | + runs-on: ubuntu-22.04 |
13 | 14 |
|
14 | 15 | strategy: |
15 | 16 | matrix: |
16 | | - otp: ['25.2.1'] |
17 | | - rebar: ['3.20.0'] |
| 17 | + otp: ["25", "26"] |
| 18 | + rebar: ["3.22"] |
18 | 19 |
|
19 | 20 | steps: |
20 | | - - uses: actions/checkout@v2 |
21 | | - - uses: erlef/setup-beam@v1 |
22 | | - id: setup-beam |
23 | | - with: |
24 | | - otp-version: ${{matrix.otp}} |
25 | | - rebar3-version: ${{matrix.rebar}} |
26 | | - - name: Restore _build |
27 | | - uses: actions/cache@v2 |
28 | | - with: |
29 | | - path: _build |
30 | | - key: _build-cache-for-os-${{runner.os}}-otp-${{steps.setup-beam.outputs.otp-version}}-rebar3-${{steps.setup-beam.outputs.rebar3-version}}-hash-${{hashFiles('rebar.lock')}} |
31 | | - - name: Restore rebar3's cache |
32 | | - uses: actions/cache@v2 |
33 | | - with: |
34 | | - path: ~/.cache/rebar3 |
35 | | - key: rebar3-cache-for-os-${{runner.os}}-otp-${{steps.setup-beam.outputs.otp-version}}-rebar3-${{steps.setup-beam.outputs.rebar3-version}}-hash-${{hashFiles('rebar.lock')}} |
36 | | - - name: Compile |
37 | | - run: rebar3 compile |
38 | | - - name: Format check |
39 | | - run: rebar3 format --verify |
40 | | - - name: Run tests and verifications |
41 | | - run: rebar3 test |
| 21 | + - uses: actions/checkout@v3 |
| 22 | + - uses: erlef/setup-beam@v1 |
| 23 | + id: setup-beam |
| 24 | + with: |
| 25 | + otp-version: ${{matrix.otp}} |
| 26 | + rebar3-version: ${{matrix.rebar}} |
| 27 | + - name: Restore _build |
| 28 | + uses: actions/cache@v3 |
| 29 | + with: |
| 30 | + path: _build |
| 31 | + key: "_build-cache-for |
| 32 | + -os-${{runner.os}} |
| 33 | + -otp-${{steps.setup-beam.outputs.otp-version}} |
| 34 | + -rebar3-${{steps.setup-beam.outputs.rebar3-version}} |
| 35 | + -hash-${{hashFiles('rebar.lock')}}" |
| 36 | + - name: Restore rebar3's cache |
| 37 | + uses: actions/cache@v3 |
| 38 | + with: |
| 39 | + path: ~/.cache/rebar3 |
| 40 | + key: "rebar3-cache-for |
| 41 | + -os-${{runner.os}} |
| 42 | + -otp-${{steps.setup-beam.outputs.otp-version}} |
| 43 | + -rebar3-${{steps.setup-beam.outputs.rebar3-version}} |
| 44 | + -hash-${{hashFiles('rebar.lock')}}" |
| 45 | + - name: Compile |
| 46 | + run: rebar3 compile |
| 47 | + - name: Format check |
| 48 | + run: rebar3 format --verify |
| 49 | + - name: Run tests and verifications |
| 50 | + run: rebar3 as test test |
0 commit comments