mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 19:18:17 +00:00
3d0b873584
* Run CI only on pull-requests and on the master-branch. * also for the other workflows
55 lines
1.2 KiB
YAML
55 lines
1.2 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@v1
|
|
with:
|
|
node-version: "10"
|
|
|
|
- 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@v1
|
|
with:
|
|
node-version: "10"
|
|
|
|
- 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@v1
|
|
with:
|
|
node-version: "10"
|
|
|
|
- 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")
|