fix(sec): upgrade golang.org/x/sys to 0.1.0 #154
Workflow file for this run
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: 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 |