-
Notifications
You must be signed in to change notification settings - Fork 1
113 lines (109 loc) · 2.92 KB
/
testsuite.yaml
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
# NB! This file is generated from templates/Dockerfile.
# Make sure to make change to the template, not
# the in situ file.
name: IPFS Unit and integration tests
on:
push:
branches: ["main", "develop"]
pull_request:
branches: ["main"]
env:
MIX_ENV: test
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
permissions:
contents: read
jobs:
otp25:
name: Build and for test OTP 25
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
otp: ["25.1.2"]
elixir: ["1.14.3", "1.15.2"]
services:
ipfs:
image: ipfs/kubo:v0.23.0
ports:
- 5001:5001
steps:
- uses: actions/checkout@v3
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: ${{matrix.elixir}}
otp-version: ${{matrix.otp}}
- name: Restore dependencies cache
uses: actions/cache@v3
id: dependency-cache
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install dependencies
if: steps.dependency-cache.outputs.cache-hit != 'true'
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
- name: Lint
run: |
mix format --check-formatted
mix deps.unlock --check-unused
mix deps.get
mix compile --warnings-as-errors
- name: Run dialyzer integrity checks
timeout-minutes: 10
run: |
mix dialyzer
- name: Run test suite
run: |
#mix coveralls
mix coveralls.github
otp26:
name: Build and for test OTP 26
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
otp: ["26.0.2"]
elixir: ["1.15.2"]
services:
ipfs:
image: ipfs/kubo:v0.23.0
ports:
- 5001:5001
steps:
- uses: actions/checkout@v3
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: ${{matrix.elixir}}
otp-version: ${{matrix.otp}}
- name: Restore dependencies cache
uses: actions/cache@v3
id: dependency-cache
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-
- name: Install dependencies
if: steps.dependency-cache.outputs.cache-hit != 'true'
run: |
mix local.rebar --force
mix local.hex --force
mix deps.get
- name: Lint
run: |
mix format --check-formatted
mix deps.unlock --check-unused
mix deps.get
mix compile --warnings-as-errors
- name: Run dialyzer integrity checks
timeout-minutes: 10
run: |
mix dialyzer
- name: Run test suite
run: |
#mix coveralls
mix coveralls.github