-
-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (35 loc) · 875 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
name: Tests
on:
pull_request:
branches:
- main
workflow_call:
jobs:
mix-tests:
name: Mix tests
runs-on: ubuntu-latest
env:
ImageOS: ubuntu22
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Elixir
uses: erlef/setup-elixir@v1
with:
otp-version: 26
elixir-version: 1.15
rebar3-version: 3.22
- name: Check formatting
run: mix format --check-formatted
- name: Restore dependencies cache
uses: actions/cache@v3
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install Dependencies
run: mix deps.get --only test --verbose
- name: Run unit tests
run: mix test
env:
MIX_ENV: test