mirror of
https://github.com/rust-unofficial/awesome-rust
synced 2024-11-22 11:53:06 +00:00
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
name: Lint
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
lint-md:
|
|
runs-on: ubuntu-latest
|
|
name: Lint Markdown content
|
|
steps:
|
|
- name: Checkout the repository
|
|
uses: actions/checkout@v3
|
|
- name: Markdown lint for README
|
|
uses: docker://avtodev/markdown-lint:v1
|
|
with:
|
|
config: ./.markdownlint.json
|
|
args: ./README.md
|
|
lint-editorconfig:
|
|
runs-on: ubuntu-latest
|
|
name: Lint for editorconfig violations
|
|
steps:
|
|
- name: Checkout the repository
|
|
uses: actions/checkout@v3
|
|
- name: Check for editorconfig violations
|
|
uses: editorconfig-checker/action-editorconfig-checker@v1
|
|
|
|
lint-markdown-toc:
|
|
runs-on: ubuntu-latest
|
|
name: Lint for Table of Contents
|
|
steps:
|
|
- name: Checkout the repository
|
|
uses: actions/checkout@v3
|
|
- 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
|