test #98
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
- fix-golangci | |
pull_request: | |
branches: | |
- main | |
name: lint and test | |
jobs: | |
golangci: | |
strategy: | |
matrix: | |
go-version: | |
- "1.20" | |
- "1.21" | |
- "1.22" | |
name: lint and test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Get dependencies | |
run: go mod tidy | |
- name: golangci-lint | |
uses: golangci/[email protected] | |
with: | |
version: v1.62.0 | |
- name: test | |
run: make test |