1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-10 14:26:26 -05:00
v2fly/.github/workflows/test.yml

50 lines
1.0 KiB
YAML
Raw Normal View History

name: Test
on:
push:
branches:
- master
- v*
- dev-*
paths:
- "**/*.go"
- "go.mod"
- "go.sum"
- ".github/workflows/test.yml"
pull_request:
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"
- ".github/workflows/test.yml"
jobs:
2020-08-24 04:09:51 -04:00
test:
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:
go-version: ^1.16.4
2020-08-30 13:10:28 -04:00
- name: Checkout codebase
uses: actions/checkout@v2
2021-06-12 22:13:29 -04:00
with:
fetch-depth: 0
- name: Test
2021-06-12 22:13:29 -04:00
run: |
export PATH=$(go env GOPATH)/bin:${PATH}
go install -v github.com/ory/go-acc@latest
go-acc --covermode=atomic -o=coverage.txt ./...
shell: bash
- name: Upload codecov
run: bash <(curl -s https://codecov.io/bash)
shell: bash