Skip to content

Please, consider replacing golint with staticcheck #315

Please, consider replacing golint with staticcheck

Please, consider replacing golint with staticcheck #315

Workflow file for this run

name: ci
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
run-tests:
name: Run Tests
runs-on: ubuntu-latest
strategy:
matrix:
go-version:
- '1.18'
- '1.19'
- '1.20'
- '1.21'
- '1.22'
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Install deps
run: go mod download
- name: Tests
run: make test
static-check:
name: Run Static Checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.18'
- name: Install deps
run: go mod download
- name: go vet ./...
run: go vet ./...
# TODO: improve with caching
- uses: dominikh/[email protected]
with:
version: "2022.1.1"
install-go: false
min-go-version: "1.18"
golangci-lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0