Skip to content

Commit

Permalink
Update go.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
qba73 authored May 3, 2024
1 parent 246a0e6 commit 96a9b72
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,30 @@
# Based on https://github.com/mvdan/github-actions-golang
on: [push, pull_request]
on: [push, pull_request, workflow_dispatch]
name: Tests
jobs:
test:
strategy:
matrix:
go-version: [1.19.x, 1.20.x, 1.21.x]
go-version: ['stable']
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-go@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v3
- run: go test ./...
govulncheck:
runs-on: ubuntu-latest
steps:
- uses: golang/govulncheck-action@v1
with:
go-version-input: 1.22.2
gocritic:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
- uses: actions/checkout@v3
- run: |
go install github.com/go-critic/go-critic/cmd/gocritic@latest
gocritic check .

0 comments on commit 96a9b72

Please sign in to comment.