Skip to content

ci: pin actions by sha #29

ci: pin actions by sha

ci: pin actions by sha #29

Workflow file for this run

name: validate
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on: [push, pull_request]
jobs:
lint:
name: ${{ matrix.platform }} (${{ matrix.go-version || 'oldest' }})
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
go-version:
- "" # do not specify go-version to fall back on go-version-file (use go.mod); see https://github.com/actions/setup-go/issues/450#issuecomment-3620402646
- "oldstable"
- "stable"
platform: [ubuntu-latest,windows-latest, macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout code
uses: actions/checkout@v6.0.2
- name: Install Go ${{ matrix.go-version }}
uses: actions/setup-go@v6.3.0
with:
go-version: ${{ matrix.go-version }}
go-version-file: "go.mod" # used when go-version is not specified.
- name: Lint
uses: golangci/golangci-lint-action@v9.2.0
with:
args: --timeout=5m --verbose