Skip to content

Commit

Permalink
chg: [CI] add test pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
gallypette committed May 21, 2024
1 parent f005eff commit 9ba07ae
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "Test"
on: ["push", "pull_request"]

jobs:
test:
runs-on: ubuntu-20.04
name: OTP ${{ matrix.otp }} / Elixir ${{ matrix.elixir }}
strategy:
matrix:
otp: ["24.x"]
elixir: ["1.12.3", "1.13.3", "1.14.3", "1.15.3", "1.16.3"]
steps:
- uses: actions/checkout@v3

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

- run: |
mix deps.get
mix compile --warnings-as-errors
mix format --check-formatted
mix test

0 comments on commit 9ba07ae

Please sign in to comment.