From 3db38f29ed6c8c8c85312da7d2709455e90afedc Mon Sep 17 00:00:00 2001 From: Remi Gau Date: Thu, 24 Dec 2020 10:24:12 +0100 Subject: [PATCH 1/2] update CI --- .github/workflows/check_markdown.yml | 34 ++++++++++++++++++++++++++++ .github/workflows/check_md_links.yml | 1 - .github/workflows/miss_hit.yml | 1 - .github/workflows/moxunit.yml | 2 +- .travis.yml | 9 -------- 5 files changed, 35 insertions(+), 12 deletions(-) create mode 100644 .github/workflows/check_markdown.yml diff --git a/.github/workflows/check_markdown.yml b/.github/workflows/check_markdown.yml new file mode 100644 index 00000000..46725a09 --- /dev/null +++ b/.github/workflows/check_markdown.yml @@ -0,0 +1,34 @@ +name: Check Markdown + +on: + push: + branches: + - master + pull_request: + branches: '*' + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + + - uses: actions/checkout@v2 + with: + submodules: true + fetch-depth: 1 + + - uses: actions/setup-node@v2 + with: + node-version: '10' + + - name: Install dependencies and check markdown + run: | + npm install `cat npm-requirements.txt` + npx remark README.md --frail + npx remark ./notebooks/ --frail + npx remark ./tests/ --frail + npx remark ./docs/ --frail + + diff --git a/.github/workflows/check_md_links.yml b/.github/workflows/check_md_links.yml index c54aac1c..62bb95e1 100644 --- a/.github/workflows/check_md_links.yml +++ b/.github/workflows/check_md_links.yml @@ -6,7 +6,6 @@ on: push: branches: - master - - dev pull_request: branches: '*' diff --git a/.github/workflows/miss_hit.yml b/.github/workflows/miss_hit.yml index caae9915..5c5e561d 100644 --- a/.github/workflows/miss_hit.yml +++ b/.github/workflows/miss_hit.yml @@ -4,7 +4,6 @@ on: push: branches: - master - - dev pull_request: branches: '*' diff --git a/.github/workflows/moxunit.yml b/.github/workflows/moxunit.yml index 2edec1b8..3ff36e91 100644 --- a/.github/workflows/moxunit.yml +++ b/.github/workflows/moxunit.yml @@ -1,4 +1,4 @@ -name: CI +name: MOxUnit on: push: diff --git a/.travis.yml b/.travis.yml index 920f26b6..87c8f835 100644 --- a/.travis.yml +++ b/.travis.yml @@ -46,12 +46,3 @@ jobs: - name: "BIDS validator: create and check dataset" script: octave $OCTFLAGS --eval "test_makeRawDataset" && bids-validator `pwd`/output/raw/ --ignoreNiftiHeaders - - - name: "Check markdown" - before_script: - - npm install `cat npm-requirements.txt` - script: - - remark README.md --frail - - remark ./notebooks/ --frail - - remark ./tests/ --frail - - remark ./docs/ --frail From 096cd5d3bbee3cb4bd197c4d69db9a5281e8683d Mon Sep 17 00:00:00 2001 From: Remi Gau Date: Thu, 24 Dec 2020 10:28:38 +0100 Subject: [PATCH 2/2] update README --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4268cb39..6fb0f241 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ Here are the naming templates used. - Behavior -``` +```bash sub-