Skip to content

Add global flags and ldflags #1583

Add global flags and ldflags

Add global flags and ldflags #1583

Workflow file for this run

name: Build
on:
pull_request:
branches:
- 'main'
jobs:
build:
strategy:
fail-fast: false
matrix:
go-version:
- '1.21'
- '1.22'
name: Build ${{ matrix.go-version }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version: ${{ matrix.go-version }}
check-latest: true
- uses: golang/govulncheck-action@3a32958c2706f7048305d5a2e53633d7e37e97d0 # v1
with:
go-version-input: ${{ matrix.go-version }}
- run: |
go build ./...
go test -run=^$ ./...