Skip to content

chore(deps): bump the dev-dependencies group across 1 directory with 36 updates #5375

chore(deps): bump the dev-dependencies group across 1 directory with 36 updates

chore(deps): bump the dev-dependencies group across 1 directory with 36 updates #5375

Workflow file for this run

name: Lint
on:
pull_request:
branches: [ master ]
jobs:
lint:
name: Markdown, Go and OAS
runs-on: ubuntu-latest
permissions:
# Required: allow read access to the content for analysis.
contents: read
# For OAS check
checks: write
# For go lang linter
pull-requests: read
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Lint markdown
uses: nosborn/[email protected]
with:
files: '.'
config_file: ".markdownlint.json"
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Go formatting
run: |
if [ -z "$(gofmt -l .)" ]; then
echo -e "All '*.go' files are properly formatted."
else
echo -e "Please run 'make go-lint' to fix. Some files need formatting:"
gofmt -d -l .
exit 1
fi
# https://github.com/golangci/golangci-lint-action?tab=readme-ov-file#verify
- name: Verify linter configuration and Lint go code
uses: golangci/golangci-lint-action@v8
with:
verify: true
args: --timeout=30m
version: v2.5
# https://github.com/daveshanley/vacuum
- name: Lint OpenAPI spec
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Increases rate limit from 60 to 5000 requests
run: |
go tool vacuum lint -d --fail-severity warn --show-rules api/*.yaml
- uses: actions/setup-python@v6
# https://github.com/pre-commit/action
- name: Verify with pre-commit
uses: pre-commit/[email protected]