Skip to content

tests

tests #1152

Workflow file for this run

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 ./...