Skip to content

Commit

Permalink
Merge pull request #40 from JesseStimpson/ci
Browse files Browse the repository at this point in the history
CI: mix test on Linux, macOS
  • Loading branch information
mortont authored Nov 19, 2024
2 parents 87195a0 + 7be13ca commit 61bd493
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Test
on:
push:
branches: [main]
pull_request:
jobs:
linux:
runs-on: ubuntu-latest
name: Linux ${{ matrix.elixir }}, ${{ matrix.otp }}
strategy:
matrix:
elixir: ["1.17.3"]
otp: ["27.1.2"]
env:
MIX_ENV: test
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp }}
elixir-version: ${{ matrix.elixir }}
- name: Install dependencies
run: mix deps.get
- name: Compile and check warnings
run: mix compile --warnings-as-errors
- name: Check formatting
run: mix format --check-formatted
- name: Run tests
run: mix test

macos:
runs-on: macos-latest
name: macOS
env:
MIX_ENV: test
steps:
- uses: actions/checkout@v2
- name: Install
run: |
brew update
brew install erlang@27 elixir
- name: Install dependencies
run: mix deps.get
- name: Compile and check warnings
run: mix compile --warnings-as-errors
- name: Check formatting
run: mix format --check-formatted
- name: Run tests
run: mix test

0 comments on commit 61bd493

Please sign in to comment.