Skip to content

fix(sec): upgrade golang.org/x/sys to 0.1.0 #154

fix(sec): upgrade golang.org/x/sys to 0.1.0

fix(sec): upgrade golang.org/x/sys to 0.1.0 #154

Workflow file for this run

name: Test
on: [push, pull_request]
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
go: ['1.18.x', '1.19.x']
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v2
with:
stable: '!contains(${{ matrix.go }}, "beta") && !contains(${{ matrix.go }}, "rc")'
go-version: ${{ matrix.go }}
id: go
- name: generate
run: go generate -v ./...
- name: Vet
run: go vet -v ./...
- name: Test
env:
LANG: en # 必须指定语言,否则 internal/locale 测试不通过
run: go test -v -coverprofile='coverage.txt' -covermode=atomic ./...
- name: Upload Coverage report
uses: codecov/codecov-action@v1
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./coverage.txt