You've already forked docker-compose-docker
fix(ci): use DavidAnson/markdownlint-cli2-action v19.1.0
This commit is contained in:
@@ -1,46 +1,21 @@
|
|||||||
name: Markdown linter
|
name: 'Lint Markdown files'
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
paths: [ "**/*.md" ]
|
types:
|
||||||
types: [ "opened", "reopened", "synchronize" ]
|
- opened
|
||||||
|
- reopened
|
||||||
|
- synchronize
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- '**'
|
- master
|
||||||
paths: [ "**/*.md" ]
|
|
||||||
tags-ignore:
|
|
||||||
- '**'
|
|
||||||
workflow_dispatch: {}
|
workflow_dispatch: {}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
markdown-link-checker:
|
|
||||||
container:
|
|
||||||
image: docker.io/library/node:24.10.0-alpine
|
|
||||||
runs-on:
|
|
||||||
- ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Install tooling
|
|
||||||
run: |
|
|
||||||
apk update
|
|
||||||
apk add git npm
|
|
||||||
- uses: actions/checkout@v5.0.0
|
|
||||||
- name: Verify links in markdown files
|
|
||||||
run: |
|
|
||||||
npm install
|
|
||||||
npm run readme:link
|
|
||||||
|
|
||||||
markdown-lint:
|
markdown-lint:
|
||||||
container:
|
runs-on: ubuntu-latest
|
||||||
image: docker.io/library/node:24.10.0-alpine
|
|
||||||
runs-on:
|
|
||||||
- ubuntu-latest
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install tooling
|
|
||||||
run: |
|
|
||||||
apk update
|
|
||||||
apk add git
|
|
||||||
- uses: actions/checkout@v5.0.0
|
- uses: actions/checkout@v5.0.0
|
||||||
- name: Lint markdown files
|
- uses: DavidAnson/markdownlint-cli2-action@v19.1.0
|
||||||
run: |
|
with:
|
||||||
npm install
|
globs: '**/*.md'
|
||||||
npm run readme:lint
|
|
||||||
|
|||||||
Reference in New Issue
Block a user