-
Notifications
You must be signed in to change notification settings - Fork 20
45 lines (37 loc) · 1.09 KB
/
elixir.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
40
41
42
43
44
45
name: docusign_elixir CI
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Elixir
uses: erlef/setup-beam@v1
with:
otp-version: "27.2"
elixir-version: "1.18.1"
- name: Cache dependencies
uses: actions/cache@v3
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
restore-keys: |
${{ runner.os }}-mix-
- name: Install Dependencies
run: |
mix deps.get
- name: Cache build
uses: actions/cache@v3
with:
path: _build
key: ${{ runner.os }}-mix-build-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
restore-keys: |
${{ runner.os }}-mix-build-
- name: Compile app
run: MIX_ENV=test mix compile --warnings-as-errors
- name: Run Tests
run: |
set +e
mix test --trace
- name: Check formatting
run: mix format --check-formatted