Skip to content

Bump golangci-lint to 1.51.0 #326

Bump golangci-lint to 1.51.0

Bump golangci-lint to 1.51.0 #326

Workflow file for this run

name: CI
on:
workflow_dispatch:
merge_group:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: "go.mod"
- run: make test
- uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: cover.out
functionalities: fixes
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: "go.mod"
- uses: golangci/golangci-lint-action@v3
with:
version: v1.51
args: --timeout 5m
go-apidiff:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v4
with:
go-version-file: "go.mod"
- uses: joelanford/go-apidiff@main
license-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: make check-license