Skip to content

running static check for go 1.22 #303

running static check for go 1.22

running static check for go 1.22 #303

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
- name: go vet ./...
run: go vet ./...
- uses: dominikh/[email protected]
if: ${{ matrix.go-version == '1.22' }}
with:
version: "2022.1.1"
install-go: false
golangci-lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: golangci-lint
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0