Bump actions/checkout from 4 to 5 #90
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: # yamllint disable-line rule:truthy | |
push: | |
tags: | |
- v* | |
branches: | |
- master | |
- main | |
pull_request: | |
branches: | |
- master | |
- main | |
jobs: | |
test: | |
permissions: | |
contents: read # for actions/checkout to fetch code | |
timeout-minutes: 10 | |
strategy: | |
matrix: | |
# test against the "oldest" supported version and the current version | |
# of go. | |
go-version: [1.23.x, stable] | |
os: [ubuntu-24.04, ubuntu-22.04, windows-2025] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- uses: actions/checkout@v5 | |
- run: go test -exec "sudo -n" -v ./... | |
- run: go mod tidy -diff |