1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-07-02 20:15:24 +00:00
v2fly/.github/workflows/test.yml

42 lines
845 B
YAML
Raw Normal View History

name: Test
on:
push:
2020-08-24 08:09:51 +00:00
branches: [master]
paths:
- "**/*.go"
- "go.mod"
- "go.sum"
pull_request:
2020-08-24 08:09:51 +00:00
branches: [master]
2020-08-30 17:10:28 +00:00
types: [opened, synchronize, reopened]
2020-08-24 16:04:55 +00:00
paths:
- "**/*.go"
- "go.mod"
- "go.sum"
jobs:
2020-08-24 08:09:51 +00:00
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
2020-09-09 10:19:49 +00:00
go-version: ^1.15
2020-08-30 17:10:28 +00:00
- name: Checkout codebase
uses: actions/checkout@v2
2020-08-30 17:10:28 +00: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 17:10:28 +00:00
run: go test -timeout 1h -v ./...