Skip to content

Commit

Permalink
CI housekeeping (#122)
Browse files Browse the repository at this point in the history
List of changes:
- add Elixir 1.17 / Erlang OTP 27 to CI matrix
- add cache to deps
- bump github/actions
- use only min and max Elixir/Erlang combination
  • Loading branch information
kianmeng authored Aug 11, 2024
1 parent a10b812 commit d87b4a1
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,30 @@ jobs:
matrix:
include:
- pair:
elixir: 1.7.4
otp: 22.3.4
elixir: 1.7.x
otp: 22.x
- pair:
elixir: 1.14.2
otp: 24.3.4.1
- pair:
elixir: 1.15.0
otp: 26.0.1
elixir: 1.17.x
otp: 27.x
lint: lint
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.pair.otp}}
elixir-version: ${{matrix.pair.elixir}}

- name: Install Dependencies
run: mix deps.get --only test
- uses: actions/cache@v4
with:
path: |
deps
_build
key: ${{ runner.os }}-mix-${{matrix.pair.elixir}}-${{matrix.pair.otp}}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-${{matrix.pair.elixir}}-${{matrix.pair.otp}}-
- run: mix deps.get --only test

- run: mix format --check-formatted
if: ${{ matrix.lint }}
Expand Down

0 comments on commit d87b4a1

Please sign in to comment.