Upgrade go version to 1.23.2 #146
Workflow file for this run
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
name: CI | |
on: | |
push: | |
branches: ['main'] | |
pull_request: | |
branches: ['main'] | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Read .tool-versions | |
uses: marocchino/tool-versions-action@v1 | |
id: versions | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '${{ steps.versions.outputs.golang }}' | |
cache: true | |
- run: go mod tidy | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
version: latest | |
only-new-issues: true | |
test: | |
name: Run tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Read .tool-versions | |
uses: marocchino/tool-versions-action@v1 | |
id: versions | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '${{ steps.versions.outputs.golang }}' | |
cache: true | |
- run: go mod tidy | |
- name: Test | |
run: make test |