Skip to content

Commit

Permalink
Update test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jsonmaur committed May 11, 2023
1 parent 80d3baa commit 8910e62
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,36 @@
name: Test
permissions:
contents: read

on: [push, pull_request]

on:
pull_request:
push:
branches: [master]
env:
MIX_ENV: test

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
otp: ["24", "25"]
elixir: ["1.13", "1.14"]

steps:
- uses: actions/checkout@v3

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

- uses: actions/cache@v3
with:
path: deps
key: mix-deps-${{ runner.os }}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
mix-deps-${{ runner.os }}-
- uses: actions/cache@v3
with:
path: _build
key: mix-build-${{ runner.os }}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
mix-build-${{ runner.os }}-
- run: mix deps.get
- run: mix test --include external

0 comments on commit 8910e62

Please sign in to comment.