Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmach committed Sep 25, 2023
1 parent b50480d commit bb4a656
Showing 1 changed file with 6 additions and 47 deletions.
53 changes: 6 additions & 47 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,53 +3,12 @@ name: CI
on:
pull_request:
push:
branches:
- master
# branches:
# - master

jobs:
test:
runs-on: ubuntu-latest
env:
MIX_ENV: test
strategy:
fail-fast: false
matrix:
include:
- pair:
elixir: 1.12.0
otp: 22.3
- pair:
elixir: 1.14.1
otp: 25.1
lint: lint
steps:
- uses: actions/checkout@v3

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

- uses: actions/cache@v3
with:
path: |
deps
_build
key: ${{ runner.os }}-mix-${{matrix.pair.elixir}}-${{matrix.pair.otp}}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-
- run: mix deps.get

- run: mix format --check-formatted
if: ${{ matrix.lint }}

- run: mix deps.unlock --check-unused
if: ${{ matrix.lint }}

- run: mix deps.compile

- run: mix compile --warnings-as-errors
if: ${{ matrix.lint }}

- run: mix test
uses: wojtekmach/setup-elixir/.github/workflows/ci.yml@main
with:
elixir-version-minimum: "1.12.0"
otp-version-minimum: "22.3"

0 comments on commit bb4a656

Please sign in to comment.