-
Notifications
You must be signed in to change notification settings - Fork 2
84 lines (80 loc) · 2.3 KB
/
elixir.yml
File metadata and controls
84 lines (80 loc) · 2.3 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: Elixir CI
env:
MIX_ENV: test
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: OTP ${{matrix.otp}} | Elixir ${{matrix.elixir}}
runs-on: ubuntu-latest
strategy:
matrix:
otp: [25, 24]
elixir: ['1.14', '1.13']
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
restore-keys: |
${{ runner.os }}-mix-
- uses: actions/cache@v3
with:
path: _build/ci
key: ${{ runner.os }}-build-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
restore-keys: |
${{ runner.os }}-build-
- uses: erlef/setup-beam@v1.16.0
with:
otp-version: ${{matrix.otp}}
elixir-version: ${{matrix.elixir}}
- name: Install inotify-tools
run: sudo apt-get install inotify-tools
- name: Install hex
run: mix local.hex --force
- name: Install rebar
run: mix local.rebar --force
- name: Install Dependencies
run: mix deps.get
- name: Run Tests
run: mix test
quality:
name: Code quality checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
restore-keys: |
${{ runner.os }}-mix-
- uses: actions/cache@v3
with:
path: _build/ci
key: ${{ runner.os }}-build-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
restore-keys: |
${{ runner.os }}-build-
- uses: erlef/setup-beam@v1.16.0
with:
otp-version: 25
elixir-version: 1.14
- name: Install inotify-tools
run: sudo apt-get install inotify-tools
- name: Install hex
run: mix local.hex --force
- name: Install rebar
run: mix local.rebar --force
- name: Install Dependencies
run: mix do deps.get, compile
- name: Run code analysis
run: mix credo --strict
- name: Report coverage
run: mix coveralls.github
- name: Check documentation coverage
run: mix inch