-
Notifications
You must be signed in to change notification settings - Fork 1.4k
60 lines (58 loc) · 1.62 KB
/
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
51
52
53
54
55
56
57
58
59
60
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
permissions:
contents: read
jobs:
integration-test:
name: integration test
runs-on: ubuntu-latest
env:
FORCE_COLOR: 1
strategy:
fail-fast: false
matrix:
elixirbase:
- "1.13.4-erlang-24.3.4.2-alpine-3.16.0"
- "1.13.4-erlang-22.3.4.20-alpine-3.14.0"
- "1.11.4-erlang-21.3.8.24-alpine-3.13.3"
steps:
- uses: earthly/actions-setup@v1
- uses: actions/checkout@v3
- name: ecto integration-test under ${{matrix.elixirbase}}
run: earthly -P --ci --build-arg ELIXIR_BASE=${{matrix.elixirbase}} +integration-test
unit-test:
name: unit test
runs-on: ubuntu-latest
env:
FORCE_COLOR: 1
strategy:
fail-fast: false
matrix:
elixirbase:
- "1.13.4-erlang-24.3.4.2-alpine-3.16.0"
- "1.13.4-erlang-22.3.4.20-alpine-3.14.0"
- "1.11.4-erlang-21.3.8.24-alpine-3.13.3"
steps:
- uses: earthly/actions-setup@v1
- uses: actions/checkout@v3
- name: ecto test under ${{matrix.elixirbase}}
run: earthly -P --ci --build-arg ELIXIR_BASE=${{matrix.elixirbase}} +test
lint:
name: lint
runs-on: ubuntu-latest
env:
FORCE_COLOR: 1
strategy:
fail-fast: false
matrix:
elixirbase:
- "1.13.4-erlang-24.3.4.2-alpine-3.16.0"
steps:
- uses: earthly/actions-setup@v1
- uses: actions/checkout@v3
- name: ecto lint under ${{matrix.elixirbase}}
run: earthly -P --ci --build-arg ELIXIR_BASE=${{matrix.elixirbase}} +lint