Merge pull request #398 from Ting817/feature/fixlint #995
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.21 | |
- name: Build | |
run: go build -v ./... | |
- name: Test | |
run: go test -v -race $(go list ./... | grep -v /examples/ | grep -v github.com/gotomicro/ego/cmd |grep -v github.com/gotomicro/ego/internal/test/errcode) -coverprofile=coverage.txt -covermode=atomic | |
- name: CodeCov | |
uses: codecov/codecov-action@v1 | |
with: | |
# token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos | |
files: ./coverage.txt | |
flags: unittests # optional | |
name: codecov-umbrella # optional | |
fail_ci_if_error: true # optional (default = false) | |
verbose: true # optional (default = false) |