File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : test
2+
3+ on :
4+ push :
5+ branches : [ "main" ]
6+ pull_request :
7+ branches : [ "main" ]
8+
9+ permissions :
10+ contents : read
11+
12+ jobs :
13+ build :
14+ name : ${{ matrix.os }} / ${{ matrix.go-version || 'minimum' }}
15+ strategy :
16+ matrix :
17+ go-version :
18+ - " " # empty: use go.mod; see https://github.com/actions/setup-go/issues/450#issuecomment-3620402646
19+ - oldstable
20+ - stable
21+ os : [ubuntu-latest, windows-latest, macos-latest]
22+ runs-on : ${{ matrix.os }}
23+ timeout-minutes : 10
24+ steps :
25+ - uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
26+ with :
27+ persist-credentials : false
28+
29+ - name : Set up Go
30+ uses : actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
31+ with :
32+ cache : false
33+ go-version : ${{ matrix.go-version }}
34+ go-version-file : ./go.mod # used when go-version is not specified.
35+
36+ - name : lint
37+ uses : golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
38+ with :
39+ version : v2.11
40+ args : --timeout=10m --verbose
41+
42+ - name : Test
43+ run : go test -v -cover "-coverprofile=coverage.txt" -covermode=atomic ./...
44+ shell : bash
45+ env :
46+ MSYS_NO_PATHCONV : ' 1'
47+
48+ - name : Codecov
49+ uses : codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
50+ with :
51+ directory : ./
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments