-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (44 loc) · 1.25 KB
/
build.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
---
name: authoritex
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
otp: ["25", "26"]
elixir: ["1.13", "1.14", "1.15"]
env:
MIX_ENV: test
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp }}
elixir-version: ${{ matrix.elixir }}
- name: Cache Elixir dependencies
uses: actions/cache@v2
with:
path: |
deps
_build
key: ${{ runner.os }}-deps-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles('mix.lock') }}
restore-keys: |
${{ runner.os }}-deps-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles('mix.lock') }}
${{ runner.os }}-deps-${{ matrix.elixir }}-${{ matrix.otp }}-
- name: Install Dependencies
run: mix do deps.get, deps.compile
- name: Static Analysis
run: mix credo --strict
env:
MIX_ENV: test
- name: Run Tests & Coverage Analysis
run: mix coveralls.github --trace
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build:
runs-on: ubuntu-latest
needs: test
steps:
- name: Pass all checks
run: echo "Tests passed"