2020-07-11 11:41:31 +00:00
|
|
|
name: Lint Code
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
Markdown:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
2020-07-14 10:14:16 +00:00
|
|
|
node-version: "10"
|
2020-07-11 11:41:31 +00:00
|
|
|
|
|
|
|
- name: Install markdownlint
|
|
|
|
run: npm install -g markdownlint-cli
|
|
|
|
|
|
|
|
- name: Run Markdownlint
|
2020-07-14 10:14:16 +00:00
|
|
|
run: markdownlint ${GITHUB_WORKSPACE} -c ${GITHUB_WORKSPACE}/.markdownlint.yml
|
2020-07-11 11:41:31 +00:00
|
|
|
|
|
|
|
EditorConfig:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- uses: actions/setup-node@v1
|
|
|
|
with:
|
2020-07-14 10:14:16 +00:00
|
|
|
node-version: "10"
|
2020-07-11 11:41:31 +00:00
|
|
|
|
|
|
|
- name: Install ECLint
|
|
|
|
run: npm install -g eclint
|
|
|
|
|
|
|
|
- name: Run ECLint check
|
|
|
|
run: eclint check $(git ls-files | grep -v test)
|
|
|
|
|
|
|
|
YAML:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Check out repository
|
2020-07-16 15:11:34 +00:00
|
|
|
uses: actions/checkout@v2
|
2020-07-11 11:41:31 +00:00
|
|
|
|
|
|
|
- name: Install NodeJS
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
2020-07-14 10:14:16 +00:00
|
|
|
node-version: "10"
|
2020-07-11 11:41:31 +00: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")
|