.github: ensure golangci-lint runs on PR's as well #82
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": | |
- pull_request | |
jobs: | |
test: | |
strategy: | |
matrix: | |
go: | |
- 'oldstable' | |
- 'stable' | |
label: | |
- [self-hosted, linux, arm64, segment] | |
- ubuntu-latest | |
runs-on: ${{ matrix.label }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Go (${{ matrix.go }}) | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Identify OS | |
run: uname -a | |
- name: Identify Go Version | |
run: go version | |
- name: Download Dependencies | |
run: go mod download | |
- name: Run Tests | |
run: go test -race -tags=${{ matrix.tags }} ./... |