-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (54 loc) · 1.17 KB
/
test.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
name: Test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
elixir:
- 1.11-slim
- 1.12-slim
- 1.13-slim
- 1.14-slim
container:
image: elixir:${{ matrix.elixir }}
env:
MIX_ENV: test
PROTOBUF_PACKAGE: protobuf
steps:
- uses: actions/checkout@v2
- name: deps
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
apt-get update
apt-get install build-essential -y
- name: tests
run: mix test
test_exprotobuf:
runs-on: ubuntu-latest
container:
image: elixir:1.12-slim
env:
MIX_ENV: test
PROTOBUF_PACKAGE: exprotobuf
steps:
- uses: actions/checkout@v2
- name: deps
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
apt-get update
apt-get install build-essential -y
- name: tests
run: mix test
format:
runs-on: ubuntu-latest
container:
image: elixir:1.14-slim
steps:
- uses: actions/checkout@v2
- name: format
run: mix format --check-formatted --dry-run