Skip to content

Pin GitHub Actions to commit SHAs (#506) #562

Pin GitHub Actions to commit SHAs (#506)

Pin GitHub Actions to commit SHAs (#506) #562

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
- uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
with:
go-version-file: go.mod
- name: Download dependencies
run: go mod download
- name: Vet
run: go vet ./...
- name: Test
# The real-Git worktree cases can exceed Go's 10-minute package limit on Windows.
run: go test -race -count=1 -timeout=20m ./...