-
Notifications
You must be signed in to change notification settings - Fork 392
70 lines (65 loc) · 2.02 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
59
60
61
62
63
64
65
66
67
68
69
70
name: tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- {
name: "Ubuntu 22.04 GCC nginx 1.23", artifact: "Linux.tar.xz",
os: ubuntu-22.04,
cc: "gcc", cxx: "g++",
nginx_version: "1.23.4", consul_version: "1.15.2"
}
- {
name: "Ubuntu 22.04 Clang nginx 1.23", artifact: "Linux.tar.xz",
os: ubuntu-22.04,
cc: "clang", cxx: "clang++",
nginx_version: "1.23.4", consul_version: "1.15.2"
}
# - {
# name: "macOS 10.15 Clang nginx 1.23", artifact: "macOS.tar.xz",
# os: macos-10.15,
# cc: "clang", cxx: "clang++",
# nginx_version: "1.23.4", consul_version: "1.15.2"
# }
- {
name: "Ubuntu 20.04 GCC nginx 1.22", artifact: "Linux.tar.xz",
os: ubuntu-20.04,
cc: "gcc", cxx: "g++",
nginx_version: "1.22.1", consul_version: "1.15.2"
}
- {
name: "Ubuntu 20.04 Clang nginx 1.22", artifact: "Linux.tar.xz",
os: ubuntu-20.04,
cc: "clang", cxx: "clang++",
nginx_version: "1.22.1", consul_version: "1.15.2"
}
# - {
# name: "macOS 10.15 Clang nginx 1.22", artifact: "macOS.tar.xz",
# os: macos-10.15,
# cc: "clang", cxx: "clang++",
# nginx_version: "1.22.1", consul_version: "1.15.2"
# }
steps:
- uses: actions/checkout@v1
- name: Dependecies
run: |
./test/consul.sh ${{ matrix.config.consul_version }} > /tmp/consul.log &
sleep 30
shell: bash
- name: Configure
run: ./test/fetch.sh ${{ matrix.config.nginx_version }} && ./test/configure.sh
- name: Build
run: ./test/build.sh
- name: Test
run: ./test/test.sh