Skip to content

chore: update go version to 1.22 #164

chore: update go version to 1.22

chore: update go version to 1.22 #164

Workflow file for this run

---
name: Config module CI
on:
push:
paths:
- config/**
branches:
- main
- release-4.*
pull_request:
paths:
- config/**
branches:
- main
- release-4.*
jobs:
commit-check:
name: Commit Check
runs-on: ubuntu-latest
steps:
- name: Commit Check
uses: gsactions/commit-message-checker@v2
with:
pattern: |
^[^:!]+: .+\n\n.*$
error: 'Commit must begin with <scope>: <subject>'
flags: 'gm'
excludeTitle: true
excludeDescription: true
checkAllCommitMessages: true
accessToken: ${{ secrets.GITHUB_TOKEN }}
tidy:
name: Tidy
runs-on: ubuntu-latest
steps:
- name: Checkout
id: checkout
if: ${{ !cancelled() }}
uses: actions/checkout@v4
- name: Setup Go
id: setupgo
if: ${{ !cancelled() && steps.checkout.conclusion == 'success' }}
uses: actions/setup-go@v5
with:
cache: false
go-version-file: ./config/go.mod
- name: Go Tidy
if: ${{ !cancelled() && steps.checkout.conclusion == 'success' && steps.setupgo.conclusion == 'success' }}
working-directory: ./config
run: |
trap 'echo "::error file=go.mod,title=Tidy Check::Commit would leave go.mod untidy"' ERR
go mod tidy
git diff --exit-code
tests:
name: Tests
if: ${{ !cancelled() }}
uses: ./.github/workflows/tests.yml
with:
cd: config
package_expr: ./...
qemu: false