From 9898c58bffeb1d160532b795c009c45b5f64c8bd Mon Sep 17 00:00:00 2001 From: Andrea Leopardi Date: Fri, 21 Jun 2024 12:42:51 +0200 Subject: [PATCH] Update versions in CI --- .github/workflows/ci.yml | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ef94288..6dc5774 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,39 +8,40 @@ on: jobs: test: - runs-on: ubuntu-20.04 + runs-on: ${{ matrix.os }} env: MIX_ENV: test strategy: fail-fast: false matrix: include: - - pair: - elixir: 1.11 - otp: 23.3 - - pair: - elixir: 1.16 - otp: 26.2 + # Oldest. + - elixir: "1.11" + otp: "23.3" + os: ubuntu-20.04 + + # Newest. + - elixir: "1.17" + otp: "27.0" lint: lint + os: ubuntu-latest + steps: - uses: actions/checkout@v4 - uses: erlef/setup-beam@v1 with: - otp-version: ${{matrix.pair.otp}} - elixir-version: ${{matrix.pair.elixir}} + otp-version: ${{ matrix.otp }} + elixir-version: ${{ matrix.elixir }} - - name: Install Dependencies - run: mix deps.get --only test + - run: mix deps.get --only test - run: mix format --check-formatted if: ${{ matrix.lint }} - - run: mix deps.get && mix deps.unlock --check-unused + - run: mix do deps.get, deps.unlock --check-unused if: ${{ matrix.lint }} - - run: mix deps.compile - - run: mix compile --warnings-as-errors if: ${{ matrix.lint }}