Skip to content

Bump docker/setup-qemu-action from 4.1.0 to 4.2.0 #354

Bump docker/setup-qemu-action from 4.1.0 to 4.2.0

Bump docker/setup-qemu-action from 4.1.0 to 4.2.0 #354

Workflow file for this run

# copied from fortio/workflows
name: go-checks
on:
workflow_call:
push:
branches: [ main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
jobs:
check:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # pin@v4
- name: Setup Go environment
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # pin@v5
with:
go-version: '1.25'
check-latest: true
- name: Run Vulncheck
if: matrix.os == 'ubuntu-latest'
run: |
go install golang.org/x/vuln/cmd/govulncheck@latest
CGO_ENABLED=0 govulncheck ./...
- name: Download linter config
if: matrix.os == 'ubuntu-latest'
run: curl -fsS -o .golangci.yml https://raw.githubusercontent.com/fortio/workflows/main/golangci.yml
- name: Run golangci-lint
if: matrix.os == 'ubuntu-latest'
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # pin@v8
with:
version: v2.8.0
env:
CGO_ENABLED: 0
- name: Run tests
run: |
go version
go run . buildinfo || true # to also confirm go toolchain version used
if make -n test &>/dev/null; then
echo "Running tests with make test"
make test
else
echo "No Makefile test target, running tests with race detection as default behavior"
go test -race ./...
fi
shell: bash # to use bash on Windows