ci(docs): add markdown linters and editorconfig #3418
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: | |
pull_request: | |
branches: [ master ] | |
jobs: | |
lint: | |
name: Markdown, Go and OAS | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
checks: write | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Lint markdown | |
uses: nosborn/[email protected] | |
with: | |
files: '.' | |
config_file: ".markdownlint.json" | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Lint go code | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
args: --timeout=30m | |
version: v1.63 | |
# Run Spectral | |
- name: Lint OpenAPI spec | |
uses: stoplightio/spectral-action@2ad0b9302e32a77c1caccf474a9b2191a8060d83 # v0.8.11 | |
with: | |
file_glob: 'api/*.yaml' |