|
1 | 1 | name: CI |
2 | 2 |
|
3 | 3 | on: |
4 | | - push: |
5 | | - branches: ["*"] |
6 | | - pull_request: |
7 | | - branches: ["*"] |
| 4 | + push: |
| 5 | + branches: ["*"] |
| 6 | + pull_request: |
| 7 | + branches: ["*"] |
8 | 8 |
|
9 | 9 | jobs: |
10 | | - lint: |
11 | | - runs-on: ${{ matrix.os }} |
12 | | - env: |
13 | | - MIX_ENV: dev |
14 | | - name: Lint |
15 | | - strategy: |
16 | | - matrix: |
17 | | - os: ["ubuntu-latest"] |
18 | | - elixir: ["1.19"] |
19 | | - otp: ["28"] |
20 | | - steps: |
21 | | - - uses: actions/checkout@v6 |
22 | | - - uses: erlef/setup-beam@v1 |
23 | | - with: |
24 | | - otp-version: ${{ matrix.otp }} |
25 | | - elixir-version: ${{ matrix.elixir }} |
26 | | - - uses: actions/cache@v5 |
27 | | - with: |
28 | | - path: deps |
29 | | - key: ${{ matrix.os }}-otp_${{ matrix.otp }}-elixir_${{ matrix.elixir }}-mix_${{ hashFiles('**/mix.lock') }} |
30 | | - restore-keys: ${{ matrix.os }}-otp_${{ matrix.otp }}-elixir_${{ matrix.elixir }}-mix_ |
31 | | - - run: mix deps.get |
32 | | - - run: mix deps.compile |
33 | | - - run: mix lint |
| 10 | + lint: |
| 11 | + runs-on: ${{ matrix.os }} |
| 12 | + env: |
| 13 | + MIX_ENV: dev |
| 14 | + name: Lint |
| 15 | + strategy: |
| 16 | + matrix: |
| 17 | + os: ["ubuntu-latest"] |
| 18 | + elixir: ["1.20"] |
| 19 | + otp: ["29"] |
| 20 | + steps: |
| 21 | + - uses: actions/checkout@v6 |
| 22 | + - uses: erlef/setup-beam@v1 |
| 23 | + with: |
| 24 | + otp-version: ${{ matrix.otp }} |
| 25 | + elixir-version: ${{ matrix.elixir }} |
| 26 | + - uses: actions/cache@v5 |
| 27 | + with: |
| 28 | + path: deps |
| 29 | + key: ${{ matrix.os }}-otp_${{ matrix.otp }}-elixir_${{ matrix.elixir }}-mix_${{ hashFiles('**/mix.lock') }} |
| 30 | + restore-keys: ${{ matrix.os }}-otp_${{ matrix.otp }}-elixir_${{ matrix.elixir }}-mix_ |
| 31 | + - run: mix deps.get |
| 32 | + - run: mix deps.compile |
| 33 | + - run: mix lint |
34 | 34 |
|
35 | | - test: |
36 | | - runs-on: ${{ matrix.os }} |
37 | | - name: Test Elixir ${{ matrix.elixir }}, OTP ${{ matrix.otp }}, OS ${{ matrix.os }} |
38 | | - env: |
39 | | - MIX_ENV: test |
40 | | - strategy: |
41 | | - fail-fast: false |
42 | | - matrix: |
43 | | - os: ["ubuntu-latest"] |
44 | | - elixir: ["1.19", "1.18", "1.17"] |
45 | | - otp: ["28", "27", "26"] |
46 | | - exclude: |
47 | | - - elixir: "1.17" |
48 | | - otp: "28" |
49 | | - steps: |
50 | | - - uses: actions/checkout@v6 |
51 | | - - uses: erlef/setup-beam@v1 |
52 | | - with: |
53 | | - otp-version: ${{ matrix.otp }} |
54 | | - elixir-version: ${{ matrix.elixir }} |
55 | | - - uses: actions/cache@v5 |
56 | | - with: |
57 | | - path: deps |
58 | | - key: ${{ matrix.os }}-otp_${{ matrix.otp }}-elixir_${{ matrix.elixir }}-mix_${{ hashFiles('**/mix.lock') }} |
59 | | - restore-keys: ${{ matrix.os }}-otp_${{ matrix.otp }}-elixir_${{ matrix.elixir }}-mix_ |
60 | | - - run: mix deps.get --only test |
61 | | - - run: mix deps.compile |
62 | | - - run: mix compile |
63 | | - - run: mix test |
64 | | - - run: EXQLITE_INTEGRATION=true mix test |
| 35 | + test: |
| 36 | + runs-on: ${{ matrix.os }} |
| 37 | + name: Test Elixir ${{ matrix.elixir }}, OTP ${{ matrix.otp }}, OS ${{ matrix.os }} |
| 38 | + env: |
| 39 | + MIX_ENV: test |
| 40 | + strategy: |
| 41 | + fail-fast: false |
| 42 | + matrix: |
| 43 | + os: ["ubuntu-latest"] |
| 44 | + elixir: ["1.20", "1.19", "1.18"] |
| 45 | + otp: ["29", "28", "27"] |
| 46 | + exclude: |
| 47 | + - elixir: "1.19" |
| 48 | + otp: "29" |
| 49 | + - elixir: "1.18" |
| 50 | + otp: "29" |
| 51 | + steps: |
| 52 | + - uses: actions/checkout@v6 |
| 53 | + - uses: erlef/setup-beam@v1 |
| 54 | + with: |
| 55 | + otp-version: ${{ matrix.otp }} |
| 56 | + elixir-version: ${{ matrix.elixir }} |
| 57 | + - uses: actions/cache@v5 |
| 58 | + with: |
| 59 | + path: deps |
| 60 | + key: ${{ matrix.os }}-otp_${{ matrix.otp }}-elixir_${{ matrix.elixir }}-mix_${{ hashFiles('**/mix.lock') }} |
| 61 | + restore-keys: ${{ matrix.os }}-otp_${{ matrix.otp }}-elixir_${{ matrix.elixir }}-mix_ |
| 62 | + - run: mix deps.get --only test |
| 63 | + - run: mix deps.compile |
| 64 | + - run: mix compile |
| 65 | + - run: mix test |
| 66 | + - run: EXQLITE_INTEGRATION=true mix test |
0 commit comments