-
Notifications
You must be signed in to change notification settings - Fork 14
39 lines (35 loc) · 794 Bytes
/
Copy pathmain.yml
File metadata and controls
39 lines (35 loc) · 794 Bytes
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
name: build
on:
push:
branches:
- master
tags:
- "*"
pull_request:
types: [opened, synchronize]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
otp: ['22.2', '23.1']
elixir: ['1.8.2', '1.9.4', '1.10.3']
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-elixir@v1
with:
otp-version: ${{ matrix.otp }}
elixir-version: ${{ matrix.elixir }}
- run: mix deps.get
- run: mix test
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: erlef/setup-elixir@v1
with:
elixir-version: 1.10.4
otp-version: 23.1
- run: mix deps.get
- run: mix format --check-formatted
- run: mix credo --strict