Skip to content

Commit

Permalink
Add github actions CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sorentwo committed Apr 20, 2022
1 parent 42c833e commit c0fb449
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Continuous Integration

on: push

jobs:
ci:
env:
MIX_ENV: test

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Elixir
uses: erlef/setup-beam@v1
with:
otp-version: '24'
elixir-version: '1.13.3'

- name: Install dependencies
run: mix deps.get

- name: Check formatting
run: mix format --check-formatted

- name: Run mix deps.compile
run: mix deps.compile

- name: Run mix compile
run: mix compile --warnings-as-errors

- name: Run tests
run: mix test

0 comments on commit c0fb449

Please sign in to comment.