Skip to content

Bump golangci/golangci-lint-action from 3 to 4 #154

Bump golangci/golangci-lint-action from 3 to 4

Bump golangci/golangci-lint-action from 3 to 4 #154

Workflow file for this run

---
name: Tests
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Set up Go ${{ matrix.goVer }}
uses: actions/setup-go@v5
with:
go-version: "1.21"
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v4
with:
version: v1.55.2
- name: Staticcheck
run: |
go install honnef.co/go/tools/cmd/staticcheck@latest
$(go env GOPATH)/bin/staticcheck ./...
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
goVer: ["1.21"]
steps:
- name: Set up Go ${{ matrix.goVer }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.goVer }}
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Make
run: make