-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (40 loc) · 1.24 KB
/
dev.workflow.yml
File metadata and controls
53 lines (40 loc) · 1.24 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Dev Workflow - Test and check things
on:
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Set up Go
uses: actions/setup-go@v3.3.0
with:
go-version: 1.19
- name: Install deps
run: go mod tidy
- name: Install gomobile
run: go get golang.org/x/mobile/cmd/gomobile
- name: Install charset
run: go get golang.org/x/net/html/charset
- name: Install ipv4
run: go get golang.org/x/net/ipv4
- name: Install ipv6
run: go get golang.org/x/net/ipv6
- name: Install golangci
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.50.0
- name: Lint
run: ./bin/golangci-lint run --timeout 3m0s
- name: Test
run: go test -p 1 -v ./... -race -coverprofile=coverage.out -covermode=atomic
- name: Upload coverage report
uses: codecov/codecov-action@v1.0.2
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.out
flags: unittests
name: codecov-umbrella