forked from lexmag/statix
-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (40 loc) · 952 Bytes
/
ci.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
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
lint:
name: Code linting
uses: lexmag/elixir-actions/.github/workflows/lint.yml@v2
with:
otp-version: "26"
elixir-version: "1.16"
test:
name: Test suite
runs-on: ubuntu-20.04
strategy:
matrix:
otp: ["26"]
elixir: ["1.16"]
runtime_config: [true, false]
include:
- otp: "26"
elixir: "1.16"
runtime_config: false
env:
MIX_ENV: test
steps:
- uses: actions/checkout@v3
- name: Set up Elixir environment
uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- name: Install dependencies
run: mix deps.get --only test
- name: Run tests
run: mix test
env:
STATIX_TEST_RUNTIME_CONFIG: ${{ matrix.runtime_config }}