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

36 lines
757 B
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:
Prettier:
2020-07-11 11:41:31 +00:00
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 Prettier
run: npm install -g prettier
2020-07-11 11:41:31 +00:00
- name: Run Prettier --check
run: prettier --check .
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)