Skip to content

Commit

Permalink
Configure CI
Browse files Browse the repository at this point in the history
  • Loading branch information
amclain committed Jul 19, 2023
1 parent ff1da05 commit 1560fc3
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
on:
- push
- pull_request

jobs:
unit_tests:
name: Unit Tests
runs-on: ubuntu-22.04
env:
MIX_ENV: test
steps:
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
otp-version: "26.0.2"
elixir-version: "1.15.4"
- name: Checkout repository
uses: actions/checkout@v2
- name: Get dependencies
run: mix deps.get --only test
- name: Compile
run: mix compile
- name: Run unit tests
run: mix test

type_check:
name: Type Check
runs-on: ubuntu-22.04
steps:
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
otp-version: "26.0.2"
elixir-version: "1.15.4"
- name: Checkout repository
uses: actions/checkout@v2
- name: Get dependencies
run: mix deps.get --only dev
- name: Restore PLTs
uses: actions/cache@v1
with:
path: _build/dev/plt
key: plt-${{ github.ref }}-${{ github.sha }}
restore-keys: |
plt-${{ github.ref }}-${{ github.sha }}
plt-${{ github.ref }}-
plt-refs/heads/master-
- name: Compile
run: mix compile
- name: Run dialyzer
run: mix dialyzer

0 comments on commit 1560fc3

Please sign in to comment.