Skip to content

Commit 1d019fd

Browse files
committed
Merge branch 'main' of github.com:NICEXAI/WeChatCustomerServiceSDK into main
2 parents a205b75 + dc28142 commit 1d019fd

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

.github/workflows/codecov.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Set up Go
17+
uses: actions/setup-go@v2
18+
with:
19+
go-version: 1.16
20+
21+
- name: Build
22+
run: go build -v ./...
23+
24+
- name: Test
25+
run: go test -v -race $(go list ./... | grep -v /examples/) -coverprofile=coverage.txt -covermode=atomic
26+
27+
- name: CodeCov
28+
uses: codecov/codecov-action@v1
29+
with:
30+
files: ./coverage.txt
31+
flags: unittests
32+
name: codecov-umbrella
33+
fail_ci_if_error: false
34+
verbose: true

.github/workflows/golangcilint.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: golangci-lint
2+
on: [push, pull_request]
3+
jobs:
4+
golangci:
5+
name: lint
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
- name: golangci-lint
10+
uses: golangci/golangci-lint-action@v2
11+
with:
12+
version: v1.29

0 commit comments

Comments
 (0)