Skip to content

Commit

Permalink
Set up CI (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
paradox460 authored Nov 9, 2023
1 parent 45ba0b6 commit 54f3284
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
on:
pull_request:
types: [opened, synchronize]
branches: ["main"]
push:
branches: ["main"]
merge_group:

jobs:
ci:
name: "CI"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: jdx/rtx-action@v1
- name: Deps Cache
id: deps-cache
uses: actions/cache@v3
with:
path: |
deps
_build
key: test-${{hashFiles('.rtx.toml')}}-${{hashFiles('mix.lock')}}
restore-keys: test-${{hashFiles('.rtx.toml')}}-
- name: Install Dependencies
if: steps.deps-cache.outputs.cache-hit != 'true'
run: mix deps.get
- name: Run Tests
run: |
mix test --warnings-as-errors

0 comments on commit 54f3284

Please sign in to comment.