forked from Bluehouse-Technology/grpc
-
Notifications
You must be signed in to change notification settings - Fork 10
71 lines (60 loc) · 1.93 KB
/
run_test_case.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
name: Run test cases
on: [push, pull_request]
jobs:
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: '27'
rebar3-version: '3.23.0'
- run: rebar3 xref
- run: rebar3 dialyzer
- run: rebar3 eunit
- run: rebar3 ct
linux:
runs-on: ubuntu-latest
strategy:
matrix:
builder:
- ghcr.io/emqx/emqx-builder/5.4-3:1.17.3-27.2-1
os:
- ubuntu24.04
- ubuntu22.04
- ubuntu20.04
- debian12
- debian11
- debian10
- amzn2023
- el9
steps:
- uses: actions/checkout@v4
- name: Code analyze
run: |
version=$(echo ${{ github.ref }} | sed -r "s .*/.*/(.*) \1 g")
docker run --rm --privileged multiarch/qemu-user-static:register --reset
docker run --rm -i --name ${{ matrix.os }} -v $(pwd):/repos ${{ matrix.builder }}-${{ matrix.os }} \
sh -c "cd /repos && make xref && make dialyzer"
- name: Run tests
run: |
version=$(echo ${{ github.ref }} | sed -r "s .*/.*/(.*) \1 g")
docker run --rm --privileged multiarch/qemu-user-static:register --reset
docker run --rm -i --name ${{ matrix.os }} -v $(pwd):/repos ${{ matrix.builder }}-${{ matrix.os }} \
sh -c "cd /repos && make eunit && make ct"
docker:
runs-on: ubuntu-latest
strategy:
matrix:
builder:
- ghcr.io/emqx/emqx-builder/5.4-3:1.17.3-27.2-1
steps:
- uses: actions/checkout@v4
- name: Code analyze
run: |
docker run --rm -i --name alpine -v $(pwd):/repos ${{ matrix.builder }}-alpine3.15.1 \
sh -c "cd /repos && make xref && make dialyzer"
- name: Run tests
run: |
docker run --rm -i --name alpine -v $(pwd):/repos ${{ matrix.builder }}-alpine3.15.1 \
sh -c "cd /repos && make eunit && make ct"