Skip to content

Bump actions/checkout from 2.8.0 to 7.0.1 #192

Bump actions/checkout from 2.8.0 to 7.0.1

Bump actions/checkout from 2.8.0 to 7.0.1 #192

Workflow file for this run

---
on: [push, pull_request]
name: Test
permissions:
contents: read
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: false
# Preserve Go 1.21 coverage: macOS 26 rejects its linker output without LC_UUID.
runs-on: ${{ matrix.os == 'macos-latest' && 'macos-15' || matrix.os }}
steps:
- name: Set up Go
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
with:
go-version: '1.21.3'
- name: Check out code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Get full repo history
run: git fetch --prune --unshallow --tags
- name: Download dependencies
shell: bash
run: go mod download
- name: Build
shell: bash
run: |
mkdir -p bin
go build -o bin .
ls -la bin
- name: Test
shell: bash
run: go test -race -timeout 60s ./...