Skip to content

Commit

Permalink
Clean up CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
whatyouhide committed Dec 13, 2023
1 parent f17c624 commit 531ef6a
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,26 @@ jobs:
fail-fast: false
matrix:
include:
# Latest versions
- pair:
elixir: "1.9.4"
otp: "20.3.8"
- pair:
elixir: "1.15.0"
otp: "26.0.1"
elixir: "1.15"
otp: "26.2"
lint: lint
coverage: true

# Oldest supported versions
- pair:
elixir: "1.9.4"
otp: "20.3.8"
steps:
- name: Check out this repository
uses: actions/checkout@v3

- name: Install Erlang/OTP and Elixir
uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.pair.otp}}
elixir-version: ${{matrix.pair.elixir}}
otp-version: ${{ matrix.pair.otp }}
elixir-version: ${{ matrix.pair.elixir }}
version-type: strict

- name: Cache Mix dependencies
Expand All @@ -42,12 +45,12 @@ jobs:
deps
_build
key: |
${{ runner.os }}-mix-${{matrix.pair.elixir}}-${{matrix.pair.otp}}-${{ hashFiles('**/mix.lock') }}
${{ runner.os }}-mix-${{ matrix.pair.elixir }}-${{ matrix.pair.otp }}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-${{matrix.pair.elixir}}-${{matrix.pair.otp}}-
${{ runner.os }}-mix-${{ matrix.pair.elixir }}-${{ matrix.pair.otp }}-
- name: Fetch Mix dependencies
run: mix deps.get
- name: Fetch Mix dependencies (and check mix.lock)
run: mix deps.get --check-locked

- name: Check for formatted files
run: mix format --check-formatted
Expand Down

0 comments on commit 531ef6a

Please sign in to comment.