awesome-rust/.github/workflows/lint.yml

44 lines
1.1 KiB
YAML
Raw Normal View History

2021-08-05 22:10:01 +00:00
name: Lint
on:
push:
branches:
2022-06-11 09:17:08 +00:00
- main
2021-08-05 22:10:01 +00:00
pull_request:
branches:
2022-06-11 09:17:08 +00:00
- main
2021-08-05 22:10:01 +00:00
jobs:
2021-08-08 18:35:55 +00:00
lint-md:
2021-08-05 22:10:01 +00:00
runs-on: ubuntu-latest
2021-08-08 18:35:55 +00:00
name: Lint Markdown content
2021-08-05 22:10:01 +00:00
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Markdown lint for README
uses: docker://avtodev/markdown-lint:v1
with:
config: ./.markdownlint.json
args: ./README.md
2021-08-08 18:35:55 +00:00
lint-editorconfig:
runs-on: ubuntu-latest
name: Lint for editorconfig violations
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Check for editorconfig violations
uses: editorconfig-checker/action-editorconfig-checker@v1
2022-07-31 19:21:26 +00:00
lint-markdown-toc:
runs-on: ubuntu-latest
name: Lint for Table of Contents
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm install markdown-toc
- run: ./node_modules/.bin/markdown-toc -i README.md
- run: git diff --exit-code