Skip to content

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

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

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

Workflow file for this run

name: "Lint and test"
on:
push:
branches:
- master
paths-ignore:
- '*.md'
pull_request:
types: [ opened, synchronize ]
paths-ignore:
- '*.md'
branches:
- master
jobs:
lint:
name: "Run linters"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 1.21.1
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
test:
name: Run unit tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "^1.17"
- name: Install deps & build
run: |
go mod download
go build -v ./...
- name: Test with the Go CLI
run: go test