1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-28 14:56:33 -04:00
v2fly/.github/workflows/test.yml

44 lines
916 B
YAML
Raw Normal View History

name: Test
on:
push:
2020-08-24 04:09:51 -04:00
branches: [master]
paths:
- "**/*.go"
- "go.mod"
- "go.sum"
pull_request:
2020-08-24 04:09:51 -04:00
branches: [master]
2020-08-30 13:10:28 -04:00
types: [opened, synchronize, reopened]
2020-08-24 12:04:55 -04:00
paths:
- "**/*.go"
- "go.mod"
- "go.sum"
jobs:
2020-08-24 04:09:51 -04:00
test:
if: github.repository != 'v2ray/v2ray-core'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
2020-09-09 06:19:49 -04:00
go-version: ^1.15
2020-08-30 13:10:28 -04:00
- name: Checkout codebase
uses: actions/checkout@v2
2020-08-30 13:10:28 -04:00
- name: Cache go module
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-
- name: Test
2020-08-30 13:10:28 -04:00
run: go test -timeout 1h -v ./...