forked from ghostunnel/ghostunnel
-
Notifications
You must be signed in to change notification settings - Fork 1
66 lines (62 loc) · 1.51 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
---
name: Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Unit tests
strategy:
matrix:
version: [1.19.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.version }}
id: go
- name: Check out code
uses: actions/checkout@v2
- name: Build binary
run: make ghostunnel
- name: Run tests
run: make unit
integration-linux:
name: Integration tests (Linux)
strategy:
matrix:
version: [1.19]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Run tests
run: GO_VERSION=${{ matrix.version }} make docker-test
integration-darwin:
name: Integration tests (Darwin)
strategy:
matrix:
version: [1.19.x]
os: [macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.version }}
id: go
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install gocovmerge
run: go install github.com/wadey/gocovmerge@latest
- name: Check out code
uses: actions/checkout@v2
- name: Run tests
run: make test