|
8 | 8 |
|
9 | 9 | jobs: |
10 | 10 | test: |
11 | | - runs-on: ubuntu-20.04 |
| 11 | + runs-on: ubuntu-latest |
12 | 12 | env: |
13 | 13 | MIX_ENV: test |
14 | 14 | strategy: |
15 | 15 | fail-fast: false |
16 | 16 | matrix: |
17 | 17 | elixir: |
18 | | - - "1.13" |
19 | | - - "1.14" |
20 | | - - "1.15" |
21 | 18 | - "1.16" |
22 | 19 | - "1.17" |
| 20 | + - "1.18" |
23 | 21 | otp: |
24 | | - - "24" |
25 | 22 | - "25" |
26 | 23 | - "26" |
27 | 24 | - "27" |
28 | | - include: |
29 | | - - elixir: "1.15" |
30 | | - otp: "26" |
31 | | - format: true |
32 | 25 | exclude: |
33 | 26 | - elixir: "1.13" |
34 | | - otp: "26" |
35 | | - - elixir: "1.14" |
36 | | - otp: "26" |
37 | | - - elixir: "1.13" |
38 | | - otp: "27" |
39 | | - - elixir: "1.14" |
40 | | - otp: "27" |
41 | | - - elixir: "1.15" |
42 | | - otp: "27" |
43 | | - - elixir: "1.16" |
44 | | - otp: "27" |
45 | | - - elixir: "1.17" |
46 | | - otp: "24" |
| 27 | + - otp: "25" |
47 | 28 |
|
48 | 29 | steps: |
49 | | - - uses: actions/checkout@v2 |
| 30 | + - uses: actions/checkout@v2 |
50 | 31 |
|
51 | | - - uses: erlef/setup-beam@v1 |
52 | | - with: |
53 | | - otp-version: ${{matrix.otp}} |
54 | | - elixir-version: ${{matrix.elixir}} |
| 32 | + - uses: erlef/setup-beam@v1 |
| 33 | + with: |
| 34 | + otp-version: ${{matrix.otp}} |
| 35 | + elixir-version: ${{matrix.elixir}} |
55 | 36 |
|
56 | | - - name: Restore deps cache |
57 | | - uses: actions/cache@v2 |
58 | | - with: |
59 | | - path: | |
60 | | - deps |
61 | | - _build |
62 | | - key: deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}-git-${{ github.sha }} |
63 | | - restore-keys: | |
64 | | - deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }} |
65 | | - deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }} |
| 37 | + - name: Restore deps cache |
| 38 | + uses: actions/cache@v2 |
| 39 | + with: |
| 40 | + path: | |
| 41 | + deps |
| 42 | + _build |
| 43 | + key: deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}-git-${{ github.sha }} |
| 44 | + restore-keys: | |
| 45 | + deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }} |
| 46 | + deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }} |
66 | 47 |
|
67 | | - - name: Install package dependencies |
68 | | - run: mix deps.get |
| 48 | + - name: Install package dependencies |
| 49 | + run: mix deps.get |
69 | 50 |
|
70 | | - - name: Check code format |
71 | | - run: mix format --check-formatted |
72 | | - if: ${{ matrix.format }} |
| 51 | + - name: Check code format |
| 52 | + run: mix format --check-formatted |
| 53 | + if: ${{ matrix.format }} |
73 | 54 |
|
74 | | - - name: Compile dependencies |
75 | | - run: mix compile |
76 | | - env: |
77 | | - MIX_ENV: test |
| 55 | + - name: Compile dependencies |
| 56 | + run: mix compile |
| 57 | + env: |
| 58 | + MIX_ENV: test |
78 | 59 |
|
79 | | - - name: Run unit tests |
80 | | - run: mix test |
| 60 | + - name: Run unit tests |
| 61 | + run: mix test |
81 | 62 |
|
82 | | - - name: Cache/uncache PLTs |
83 | | - uses: actions/cache@v3 |
84 | | - with: |
85 | | - path: | |
86 | | - priv/plts |
87 | | - key: "${{ runner.os }}-\ |
88 | | - erlang-${{ matrix.otp }}-\ |
89 | | - elixir-${{ matrix.elixir }}-\ |
90 | | - ${{ hashFiles('mix.lock') }}" |
| 63 | + - name: Cache/uncache PLTs |
| 64 | + uses: actions/cache@v3 |
| 65 | + with: |
| 66 | + path: | |
| 67 | + priv/plts |
| 68 | + key: "${{ runner.os }}-\ |
| 69 | + erlang-${{ matrix.otp }}-\ |
| 70 | + elixir-${{ matrix.elixir }}-\ |
| 71 | + ${{ hashFiles('mix.lock') }}" |
91 | 72 |
|
92 | | - - name: Run Dialyzer |
93 | | - run: mix dialyzer |
| 73 | + - name: Run Dialyzer |
| 74 | + run: mix dialyzer |
0 commit comments