Skip to content

Commit

Permalink
Merge branch 'main' of github.com:NICEXAI/WeChatCustomerServiceSDK in…
Browse files Browse the repository at this point in the history
…to main
  • Loading branch information
NICEXAI committed Aug 27, 2021
2 parents a205b75 + dc28142 commit 1d019fd
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Go

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16

- name: Build
run: go build -v ./...

- name: Test
run: go test -v -race $(go list ./... | grep -v /examples/) -coverprofile=coverage.txt -covermode=atomic

- name: CodeCov
uses: codecov/codecov-action@v1
with:
files: ./coverage.txt
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false
verbose: true
12 changes: 12 additions & 0 deletions .github/workflows/golangcilint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: golangci-lint
on: [push, pull_request]
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.29

0 comments on commit 1d019fd

Please sign in to comment.