|
4 | 4 | push: |
5 | 5 | pull_request: |
6 | 6 | branches: |
7 | | - - master |
| 7 | + - main |
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: |
@@ -52,48 +52,48 @@ jobs: |
52 | 52 | otp: "24" |
53 | 53 |
|
54 | 54 | steps: |
55 | | - - uses: actions/checkout@v4 |
| 55 | + - uses: actions/checkout@v4 |
56 | 56 |
|
57 | | - - uses: erlef/setup-beam@v1 |
58 | | - with: |
59 | | - otp-version: ${{matrix.otp}} |
60 | | - elixir-version: ${{matrix.elixir}} |
| 57 | + - uses: erlef/setup-beam@v1 |
| 58 | + with: |
| 59 | + otp-version: ${{matrix.otp}} |
| 60 | + elixir-version: ${{matrix.elixir}} |
61 | 61 |
|
62 | | - - name: Restore deps cache |
63 | | - uses: actions/cache@v4 |
64 | | - with: |
65 | | - path: | |
66 | | - deps |
67 | | - _build |
68 | | - key: deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}-git-${{ github.sha }} |
69 | | - restore-keys: | |
70 | | - deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }} |
71 | | - deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }} |
| 62 | + - name: Restore deps cache |
| 63 | + uses: actions/cache@v4 |
| 64 | + with: |
| 65 | + path: | |
| 66 | + deps |
| 67 | + _build |
| 68 | + key: deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }}-git-${{ github.sha }} |
| 69 | + restore-keys: | |
| 70 | + deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('**/mix.lock') }} |
| 71 | + deps-${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }} |
72 | 72 |
|
73 | | - - name: Install package dependencies |
74 | | - run: mix deps.get |
| 73 | + - name: Install package dependencies |
| 74 | + run: mix deps.get |
75 | 75 |
|
76 | | - - name: Check code format |
77 | | - run: mix format --check-formatted |
78 | | - if: ${{ matrix.format }} |
| 76 | + - name: Check code format |
| 77 | + run: mix format --check-formatted |
| 78 | + if: ${{ matrix.format }} |
79 | 79 |
|
80 | | - - name: Compile dependencies |
81 | | - run: mix compile |
82 | | - env: |
83 | | - MIX_ENV: test |
| 80 | + - name: Compile dependencies |
| 81 | + run: mix compile |
| 82 | + env: |
| 83 | + MIX_ENV: test |
84 | 84 |
|
85 | | - - name: Run unit tests |
86 | | - run: mix test |
| 85 | + - name: Run unit tests |
| 86 | + run: mix test |
87 | 87 |
|
88 | | - - name: Cache/uncache PLTs |
89 | | - uses: actions/cache@v4 |
90 | | - with: |
91 | | - path: | |
92 | | - priv/plts |
93 | | - key: "${{ runner.os }}-\ |
94 | | - erlang-${{ matrix.otp }}-\ |
95 | | - elixir-${{ matrix.elixir }}-\ |
96 | | - ${{ hashFiles('mix.lock') }}" |
| 88 | + - name: Cache/uncache PLTs |
| 89 | + uses: actions/cache@v4 |
| 90 | + with: |
| 91 | + path: | |
| 92 | + priv/plts |
| 93 | + key: "${{ runner.os }}-\ |
| 94 | + erlang-${{ matrix.otp }}-\ |
| 95 | + elixir-${{ matrix.elixir }}-\ |
| 96 | + ${{ hashFiles('mix.lock') }}" |
97 | 97 |
|
98 | | - - name: Run Dialyzer |
99 | | - run: mix dialyzer |
| 98 | + - name: Run Dialyzer |
| 99 | + run: mix dialyzer |
0 commit comments