-
-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (32 loc) · 858 Bytes
/
test.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
name: Test
on:
push:
branches: [ v5, v5-dev ]
paths-ignore:
- "**/*.md"
- ".scripts/*.sh"
jobs:
check:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.23' ]
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
vendor
$HOME/.cache/go-build
$GOPATH/pkg/mod
key: ${{ runner.os }}-go-utils-deps
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- run: go version
- run: pwd
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
- run: go mod vendor
- run: go vet
- run: go test -race -mod=vendor -coverprofile=coverage.txt -covermode=atomic ./...
- run: bash <(curl -s https://codecov.io/bash)