nf-core_modules/.github/workflows/code-linting.yml

50 lines
1.1 KiB
YAML
Raw Normal View History

2020-08-06 11:42:45 +00:00
name: Code Linting
on:
push:
branches: [master]
pull_request:
branches: [master]
2020-07-11 11:41:31 +00:00
jobs:
Markdown:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
2020-07-11 11:41:31 +00:00
- name: Install markdownlint
run: npm install -g markdownlint-cli
- name: Run Markdownlint
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
2020-07-11 11:41:31 +00:00
- uses: actions/setup-node@v2
2020-07-11 11:41:31 +00:00
- name: Install editorconfig-checker
run: npm install -g editorconfig-checker
2020-07-11 11:41:31 +00:00
- name: Run ECLint check
run: editorconfig-checker -exclude README.md $(git ls-files | grep -v test)
2020-07-11 11:41:31 +00:00
YAML:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
2020-07-11 11:41:31 +00:00
- name: Install NodeJS
uses: actions/setup-node@v2
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")