-
Notifications
You must be signed in to change notification settings - Fork 13
122 lines (110 loc) · 2.92 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
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
name: Elixir CI
on: [push, pull_request]
jobs:
build:
name: Build and test
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
include:
- elixir: '1.10'
otp: '21'
- elixir: '1.10'
otp: '22'
- elixir: '1.10'
otp: '23'
- elixir: '1.11'
otp: '21'
- elixir: '1.11'
otp: '22'
- elixir: '1.11'
otp: '23'
- elixir: '1.11'
otp: '24'
- elixir: '1.12'
otp: '22'
- elixir: '1.12'
otp: '23'
- elixir: '1.12'
otp: '24'
- elixir: '1.12'
otp: '24'
- elixir: '1.13'
otp: '22'
- elixir: '1.13'
otp: '23'
- elixir: '1.13'
otp: '24'
- elixir: '1.14'
otp: '23'
- elixir: '1.14'
otp: '24'
- elixir: '1.14'
otp: '25'
- elixir: '1.15'
otp: '24'
- elixir: '1.15'
otp: '25'
- elixir: '1.15'
otp: '26'
- elixir: '1.16'
otp: '24'
- elixir: '1.16'
otp: '25'
- elixir: '1.16'
otp: '26'
- elixir: '1.17'
otp: '25'
- elixir: '1.17'
otp: '26'
- elixir: '1.17'
otp: '27'
- elixir: '1.17'
otp: '27'
deps: latest
lint: lint
steps:
- uses: actions/checkout@v2
- uses: nanasess/setup-chromedriver@v2
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Retrieve Mix Dependencies Cache
if: matrix.deps != 'latest'
uses: actions/cache@v1
id: mix-cache
with:
path: deps
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles('mix.lock') }}
- name: Remove mix.lock
if: matrix.deps == 'latest'
run: rm mix.lock
- name: Install dependencies
if: steps.mix-cache.outputs.cache-hit != 'true'
run: mix deps.get
- name: Retrieve PLT Cache
uses: actions/cache@v1
id: plt-cache
with:
path: priv/plts
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-plts-v2-${{ hashFiles('mix.lock') }}
if: ${{ matrix.lint }}
- name: Create PLTs
run: |
mkdir -p priv/plts
mix dialyzer --plt
if: ${{ matrix.lint }}
- name: Check quality
run: |
mix format --check-formatted
mix credo --strict
mix dialyzer --no-check
if: ${{ matrix.lint }}
- name: Run tests
run: mix test
- name: Run e2e test
run: mix e2e
if: matrix.deps == 'latest'