-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (32 loc) · 954 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Test
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
id: beam
with:
otp-version: "24"
elixir-version: "1.12"
- name: Restore Cached Dependencies
uses: actions/cache@v3
id: mix-cache
with:
path: deps
key: ${{ runner.os }}-${{ steps.beam.outputs.elixir-version }}-${{ steps.beam.outputs.otp-version }}-${{ hashFiles('mix.lock') }}
- name: Install Dependencies
if: steps.mix-cache.outputs.cache-hit != 'true'
run: mix deps.get
- name: Check Codebase Standard
run: |
mix format --check-formatted
mix credo
- name: Run Tests
run: mix coveralls.json
- name: Upload Coverage Reports
uses: codecov/codecov-action@v3
with:
directory: ./cover
fail_ci_if_error: true