Skip to content

Upgrade go version to 1.23.2 #146

Upgrade go version to 1.23.2

Upgrade go version to 1.23.2 #146

Workflow file for this run

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