-
Notifications
You must be signed in to change notification settings - Fork 10
37 lines (35 loc) · 910 Bytes
/
tests.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
name: tests
on:
push:
paths:
- '**.go'
- '**.mod'
- '**.sum'
pull_request:
paths:
- '**.go'
schedule:
# run tests regularly at 3 AM every days to check if CloudFlare updated their detection
- cron: '0 3 * * *'
env:
PROXY_USER: ${{ secrets.PROXY_USER }}
PROXY_PASS: ${{ secrets.PROXY_PASS }}
PROXY_HOST_HTTPS: ${{ secrets.PROXY_HOST_HTTPS }}
PROXY_PORT_HTTPS: ${{ secrets.PROXY_PORT_HTTPS }}
PROXY_HOST_SOCKS5: ${{ secrets.PROXY_HOST_SOCKS5 }}
jobs:
test:
strategy:
matrix:
go-version: [1.17.x]
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v1
- name: Test
run: go test ./...