Skip to content

feat: 旧版兼容 #113

feat: 旧版兼容

feat: 旧版兼容 #113

Workflow file for this run

name: Go
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
linux:
runs-on: ubuntu-latest
strategy:
matrix:
golangci_lint: [v1.54]
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: golangci-lint
uses: golangci/golangci-lint-action@v3.1.0
with:
version: ${{ matrix.golangci_lint }}
args: --timeout=2m
only-new-issues: false
working-directory: .
- name: Test
run: go test -v ./... -gcflags=all=-l
- name: Coverage
run: go test ./... -gcflags=all=-l -coverprofile=coverage.txt -covermode=atomic
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2.0.2
with:
file: ./coverage.txt
flags: unittests
env_vars: OS,GOLANG
name: codecov-umbrell
fail_ci_if_error: false