Fix DATA RACE as a result of changing ber's module global variable for fuzz tests #280
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: PR | |
on: | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: [ | |
'1.21', | |
'1.20', | |
'1.19', | |
'1.18', | |
'1.17', | |
'1.16', | |
'1.15', | |
'1.14', | |
] | |
branch: [ '.', './v3' ] | |
name: Go ${{ matrix.go }}.x PR Validate ${{ matrix.branch }} (Modules) | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Version | |
run: go version | |
- name: Build and Validate | |
run: | | |
cd ${{ matrix.branch }} | |
go vet . | |
go test . | |
go test -cover -race -cpu 1,2,4 . | |
go build . | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: golangci-lint | |
uses: golangci/[email protected] | |
with: | |
version: v1.50.0 | |
only-new-issues: true |