Skip to content

go: fix lint error strings #6

go: fix lint error strings

go: fix lint error strings #6

Workflow file for this run

name: Go
on:
pull_request: null
push: null
workflow_dispatch: null
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
permissions:
contents: read # needed to checkout repository contents
jobs:
go:
name: Go Checks
runs-on: ubuntu-latest
permissions:
contents: read # needed to checkout repository contents
steps:
- name: Checkout Repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Install Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
cache: true
- name: Check Formatting
run: |
gofmt -w cmd internal
git diff --exit-code -- cmd internal
- name: Test
run: go test ./...
go-lint:
name: Go Lint
runs-on: ubuntu-latest
permissions:
contents: read # needed to checkout repository contents
steps:
- name: Checkout Repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Install Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
cache: true
- name: Lint
uses: golangci/golangci-lint-action@82606bf257cbaff209d206a39f5134f0cfbfd2ee # v9.2.1
with:
version: v2.12.2