Skip to content

Commit

Permalink
Add GitHub Actions CI
Browse files Browse the repository at this point in the history
  • Loading branch information
derekkraan committed Jun 6, 2024
1 parent 939cd7f commit 2b8a825
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
on: push

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
elixir-version: [1.16, 1.15]
otp-version: [26, 25, 24]

name: Tests

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

- run: mix deps.get

- run: mix compile --warnings-as-errors
if: matrix.elixir-version == 1.16 && matrix.otp-version == 26

- run: mix format --check-formatted
if: matrix.elixir-version == 1.16 && matrix.otp-version == 26

- run: mix test

0 comments on commit 2b8a825

Please sign in to comment.