From 20c3319961e77e8dfcbf102a0616de500bd0cac1 Mon Sep 17 00:00:00 2001 From: flip1995 Date: Tue, 21 Jan 2020 15:29:54 +0100 Subject: [PATCH] Add remark check to GHA --- .github/workflows/remark.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/remark.yml diff --git a/.github/workflows/remark.yml b/.github/workflows/remark.yml new file mode 100644 index 000000000..8e311c75d --- /dev/null +++ b/.github/workflows/remark.yml @@ -0,0 +1,24 @@ +name: Remark + +on: + push: + paths: + - '**.md' + pull_request: + paths: + - '**.md' + +jobs: + remark: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2.0.0 + - name: Setup Node.js + uses: actions/setup-node@v1.1.0 + - name: Install remark + run: npm install remark-cli remark-lint remark-lint-maximum-line-length remark-preset-lint-recommended + + - name: Check *.md files + run: git ls-files -z '*.md' | xargs -0 -n 1 -I {} ./node_modules/.bin/remark {} -u lint -f > /dev/null