about summary refs log tree commit diff
diff options
context:
space:
mode:
authorflip1995 <hello@philkrones.com>2020-01-21 15:29:54 +0100
committerflip1995 <hello@philkrones.com>2020-02-12 09:34:25 +0100
commit20c3319961e77e8dfcbf102a0616de500bd0cac1 (patch)
tree8156bb62994ba39aa937edfa7d0c8ebad22fcada
parent1158c18ae74a2754329ad9192312c10b80293981 (diff)
downloadrust-20c3319961e77e8dfcbf102a0616de500bd0cac1.tar.gz
rust-20c3319961e77e8dfcbf102a0616de500bd0cac1.zip
Add remark check to GHA
-rw-r--r--.github/workflows/remark.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/remark.yml b/.github/workflows/remark.yml
new file mode 100644
index 00000000000..8e311c75df0
--- /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