2020-08-06 12:42:45 +01:00
|
|
|
name: Code Linting
|
2020-07-11 13:41:31 +02:00
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
Markdown:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
2020-07-14 12:14:16 +02:00
|
|
|
node-version: "10"
|
2020-07-11 13:41:31 +02:00
|
|
|
|
|
|
|
- name: Install markdownlint
|
|
|
|
run: npm install -g markdownlint-cli
|
|
|
|
|
|
|
|
- name: Run Markdownlint
|
2020-07-14 12:14:16 +02:00
|
|
|
run: markdownlint ${GITHUB_WORKSPACE} -c ${GITHUB_WORKSPACE}/.markdownlint.yml
|
2020-07-11 13:41:31 +02:00
|
|
|
|
2020-11-17 09:48:46 -06:00
|
|
|
EditorConfig:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-07-11 13:41:31 +02:00
|
|
|
|
2020-11-17 09:48:46 -06:00
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: "10"
|
2020-07-11 13:41:31 +02:00
|
|
|
|
2020-11-17 09:48:46 -06:00
|
|
|
- name: Install editorconfig-checker
|
|
|
|
run: npm install -g editorconfig-checker
|
2020-07-11 13:41:31 +02:00
|
|
|
|
2020-11-17 09:48:46 -06:00
|
|
|
- name: Run ECLint check
|
2020-12-17 17:20:30 -06:00
|
|
|
run: editorconfig-checker -exclude README.md $(git ls-files | grep -v test)
|
2020-07-11 13:41:31 +02:00
|
|
|
|
|
|
|
YAML:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Check out repository
|
2020-07-16 17:11:34 +02:00
|
|
|
uses: actions/checkout@v2
|
2020-07-11 13:41:31 +02:00
|
|
|
|
|
|
|
- name: Install NodeJS
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
2020-07-14 12:14:16 +02:00
|
|
|
node-version: "10"
|
2020-07-11 13:41:31 +02:00
|
|
|
|
|
|
|
- name: Install yaml-lint
|
|
|
|
run: npm install -g yaml-lint
|
|
|
|
|
|
|
|
- name: Run yaml-lint
|
|
|
|
run: yamllint $(find ${GITHUB_WORKSPACE} -type f -name "*.yaml" -or -name "*.yml")
|