Skip to content

Commit

Permalink
ci: configure Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
grzuy committed Jan 31, 2024
1 parent 4c917bf commit 7dbcb43
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI
on:
pull_request:
push:

jobs:
main:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- elixir_version: 1.16.0
otp_version: '26.2.1'
lint: true
- elixir_version: 1.15.7
otp_version: '25.3.2.8'
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp_version}}
elixir-version: ${{matrix.elixir_version}}
- run: mix deps.get --check-locked
- 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

0 comments on commit 7dbcb43

Please sign in to comment.