-
-
Notifications
You must be signed in to change notification settings - Fork 11
34 lines (25 loc) · 761 Bytes
/
test.yml
File metadata and controls
34 lines (25 loc) · 761 Bytes
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
# name: Test and coverage
# on: [pull_request]
# jobs:
# test:
# strategy:
# matrix:
# go-version: [1.19.x]
# os: [ubuntu-latest, macos-latest]
# runs-on: ${{ matrix.os }}
# steps:
# - uses: actions/checkout@v3
# with:
# fetch-depth: 2
# - uses: actions/setup-go@v2
# with:
# go-version: ${{ matrix.go-version }}
# - name: go get
# run: go get ./...
# - name: go mod tidy
# run: go mod tidy
# - name: Run coverage
# run: go test -race -coverprofile=coverage.out -covermode=atomic ./...
# - name: Upload coverage to Codecov
# if: matrix.os == 'ubuntu-latest'
# run: bash <(curl -s https://codecov.io/bash)