mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-15 06:03:10 +00:00
e745e167c1
* fix yml formatting * allow fastq.gz and fq.gz as file input, add meta.yml and test * fix yaml files * Revert "allow fastq.gz and fq.gz as file input, add meta.yml and test" This reverts commit 34002d7a7a8c7f7bb4600c3377f35c87849f71a4. * prettier magic! * fix comments for yamllint * remove node version number * fix linting errors Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com>
49 lines
1.1 KiB
YAML
49 lines
1.1 KiB
YAML
name: Code Linting
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
|
|
|
|
jobs:
|
|
Markdown:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
- name: Install markdownlint
|
|
run: npm install -g markdownlint-cli
|
|
|
|
- name: Run Markdownlint
|
|
run: markdownlint ${GITHUB_WORKSPACE} -c ${GITHUB_WORKSPACE}/.markdownlint.yml
|
|
|
|
EditorConfig:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
- name: Install editorconfig-checker
|
|
run: npm install -g editorconfig-checker
|
|
|
|
- name: Run ECLint check
|
|
run: editorconfig-checker -exclude README.md $(git ls-files | grep -v test)
|
|
|
|
YAML:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install NodeJS
|
|
uses: actions/setup-node@v2
|
|
|
|
- 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")
|