Skip to content

Commit

Permalink
Update CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aj-foster committed Feb 14, 2023
1 parent 504c56b commit b017c92
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 14 deletions.
38 changes: 25 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,45 @@ on:

jobs:
test:
name: "Test"
runs-on: ubuntu-latest
name: Test
env:
MIX_ENV: test
strategy:
fail-fast: false
matrix:
include:
- pair:
elixir: 1.10.4
otp: 21.3
- pair:
elixir: 1.14.0
otp: 25.0.4
- os: ubuntu-20.04
pair:
elixir: '1.10.x'
otp: '21.x'
- os: ubuntu-22.04
pair:
elixir: '1.14.x'
otp: '25.x'
lint: lint
runs-on: ${{ matrix.os }}

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

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

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

Expand All @@ -45,8 +58,7 @@ jobs:
run: mix deps.get && mix deps.unlock --check-unused
if: ${{ matrix.lint }}

- name: Compile
run: mix deps.compile

- name: Test
run: mix test
run: |
mix compile --warnings-as-errors
mix test
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ defmodule UeberauthApple.Mixfile do
version: @version,
name: "Ueberauth Apple Strategy",
package: package(),
elixir: "~> 1.6",
elixir: "~> 1.10",
elixirc_paths: elixirc_paths(Mix.env()),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
Expand Down

0 comments on commit b017c92

Please sign in to comment.