Skip to content

ci: Add markdownlint to CI workflow #412

ci: Add markdownlint to CI workflow

ci: Add markdownlint to CI workflow #412

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
ci:
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Set up Go
uses: actions/setup-go@v6.2.0
with:
go-version-file: go.mod
cache: true
- name: Install golangci-lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /usr/local/bin v2.8.0
- name: Setup Node.js
uses: actions/setup-node@v6.2.0
with:
node-version: "lts/*"
- name: Install markdownlint-cli
run: npm install -g markdownlint-cli
- name: Run markdownlint
run: markdownlint '**/*.md' --ignore CHANGELOG.md
- name: Tidy Go modules
run: find . -name 'go.mod' -execdir go mod tidy \;
- name: Check dirty
run: git diff --exit-code
- name: Run Lint
run: golangci-lint run
- name: Build
run: go build .
- name: Test
run: go test -v ./...