diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index 1d76b64..5929281 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -6,40 +6,39 @@ on: jobs: build: name: Build and test - runs-on: ubuntu-18.04 + runs-on: ubuntu-22.04 env: MIX_ENV: test ELIXIR_ENV: test strategy: matrix: - otp: ['22.3.4', '23.2.7', '24.1', '24.3.4'] - elixir: ['1.11.4', '1.12.3', '1.15.5'] + otp: ["22.3.4", "23.2.7", "24.1", "26.1.2"] + elixir: ["1.11.4", "1.12.3", "1.15.7"] # exclude: - # Example, but this doesn't need excluded - # - otp: '22.3.4' - # elixir: '1.12.3' - + # Example, but this doesn't need excluded + # - otp: '22.3.4' + # elixir: '1.12.3' steps: - - uses: actions/checkout@v2 - - name: Set up Elixir - uses: erlef/setup-elixir@v1 - with: - otp-version: ${{matrix.otp}} - elixir-version: ${{matrix.elixir}} - - - name: Restore dependencies cache - uses: actions/cache@v2 - with: - path: deps - key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} - restore-keys: ${{ runner.os }}-mix- - - - name: Install dependencies - run: mix deps.get - - - name: Run tests - run: mix test - - - name: Formatter - run: mix format --check-formatted + - uses: actions/checkout@v2 + - name: Set up Elixir + uses: erlef/setup-elixir@v1 + with: + otp-version: ${{matrix.otp}} + elixir-version: ${{matrix.elixir}} + + - name: Restore dependencies cache + uses: actions/cache@v2 + with: + path: deps + key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} + restore-keys: ${{ runner.os }}-mix- + + - name: Install dependencies + run: mix deps.get + + - name: Run tests + run: mix test + + - name: Formatter + run: mix format --check-formatted diff --git a/mix.exs b/mix.exs index 9f12eab..e7a9ec2 100644 --- a/mix.exs +++ b/mix.exs @@ -7,7 +7,7 @@ defmodule PushEx.MixProject do [ app: :push_ex, version: @version, - elixir: "~> 1.15.5", + elixir: "~> 1.15.7", elixirc_paths: elixirc_paths(Mix.env()), compilers: Mix.compilers(), elixirc_options: [warnings_as_errors: true],