-
Notifications
You must be signed in to change notification settings - Fork 173
38 lines (31 loc) · 979 Bytes
/
test_golang.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
name: 🧪 🐹 Go Integration/Unit Tests
on: [push]
jobs:
test:
strategy:
matrix:
go-version: [1.16]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Download Dependencies
working-directory: ./cycletls
run: go mod download
- name: Build
working-directory: ./cycletls
run: go build -v ./...
- name: Unit Test
working-directory: ./cycletls
run: go test --race -v ./...
- name: Start SOCKS5 Proxy (only on ubuntu)
if: matrix.platform == 'ubuntu-latest'
run: |
docker run -d -p 1087:1080 serjs/go-socks5-proxy
- name: Integration Tests
working-directory: ./cycletls
run: go test --race -v -tags=integration ./...