-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 825 Bytes
/
ci_pullreq.yml
File metadata and controls
38 lines (31 loc) · 825 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
35
36
37
38
name: CI_PullRequest
on:
pull_request:
branches: [ main ]
jobs:
CI:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Check LibraryModuleVersion variable value
run: .github/checkVersionVar.sh
- name: gofmt
uses: Jerome1337/gofmt-action@v1.0.4
with:
gofmt-path: './'
gofmt-flags: '-l -d -s -e'
- name: go vet
run: go vet ./...
- name: go test
run: go test -v -coverprofile=coverage.txt -covermode=atomic ./...
- name: Upload coverage
uses: codecov/codecov-action@v2
with:
files: ./coverage.txt
fail_ci_if_error: true
verbose: true