Skip to content

chore!: upgrade lint & go #48

chore!: upgrade lint & go

chore!: upgrade lint & go #48

Workflow file for this run

name: Test Tooling
on:
push:
paths: # Explicitly declare which paths
- ".github/workflows/test-tooling.yml"
- "tools/*"
pull_request:
branches:
- main
paths: # Explicitly declare which paths
- ".github/workflows/test-tooling.yml"
- "tools/*"
jobs:
build:
name: Test (${{ matrix.os}}) go ${{ matrix.gover }}
strategy:
fail-fast: false
matrix:
os:
- "ubuntu-latest"
- "windows-latest"
- "macos-latest"
runs-on: ${{ matrix.os }}
env:
GOLANGCILINT_VER: v1.61.0 # Make sure to bump /tools/check-lint-version/main_test.go
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup
uses: actions/setup-go@v5
with:
go-version-file: ./tools/check-lint-version/go.mod
- name: Tidy
working-directory: ./tools/check-lint-version
run: make tidy
- name: Lint
uses: golangci/golangci-lint-action@v6
with:
version: ${{ env.GOLANGCILINT_VER }}
working-directory: ./tools/check-lint-version
skip-cache: true
args: --timeout=10m0s --config ../../.golangci.yml
- name: Install Linter
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "$(go env GOPATH)/bin" ${{ env.GOLANGCILINT_VER }}
- name: Test
working-directory: ./tools/check-lint-version
run: make test