Skip to content

chore(main): release 0.3.13 #525

chore(main): release 0.3.13

chore(main): release 0.3.13 #525

Workflow file for this run

name: PR Lint
on:
push:
branches:
- main
pull_request:
merge_group:
permissions:
# Required: allow read access to the content for analysis.
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
pull-requests: read
# Optional: allow write access to checks to allow the action to annotate code in the PR.
checks: write
jobs:
format-check:
name: check formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: Check Go formatting
run: |
unformatted=$(go fmt ./...)
if [ -n "$unformatted" ]; then
echo "::error ::The following files need formatting. Please run 'go fmt ./...' or 'make fmt'"
echo "$unformatted"
exit 1
fi
echo "✅ All Go files are properly formatted"
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.7.1