...
1name: CI
2
3on:
4 push:
5 branches:
6 - master
7 paths-ignore:
8 - '**.md'
9 pull_request:
10 branches:
11 - master
12 paths-ignore:
13 - '**.md'
14
15 # Allows you to run this workflow manually from the Actions tab
16 workflow_dispatch:
17
18jobs:
19 build:
20 name: Build
21 strategy:
22 matrix:
23 go: [ '1.17.x', '1.16.x' ]
24 os: [ ubuntu-latest ]
25
26 runs-on: ${{ matrix.os }}
27
28 steps:
29 - name: Checkout
30 uses: actions/checkout@v2
31
32 - name: Setup Go
33 uses: actions/setup-go@v2
34 with:
35 go-version: ${{ matrix.go }}
36
37 - name: Test
38 run: go test ./... -race -coverprofile=coverage.txt -covermode=atomic
39
40 - name: Coverage
41 run: bash <(curl -s https://codecov.io/bash)
View as plain text