]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/.github/workflows/remark.yml
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / tools / clippy / .github / workflows / remark.yml
CommitLineData
f20569fa
XL
1name: Remark
2
3on:
4 push:
5 branches:
6 - auto
7 - try
8 pull_request:
9 paths:
10 - '**.md'
11
12jobs:
13 remark:
14 runs-on: ubuntu-latest
15
16 steps:
17 # Setup
18 - name: Checkout
19 uses: actions/checkout@v2.3.3
20
21 - name: Setup Node.js
22 uses: actions/setup-node@v1.4.4
94222f64
XL
23 with:
24 node-version: '12.x'
f20569fa
XL
25
26 - name: Install remark
136023e0 27 run: npm install remark-cli remark-lint remark-lint-maximum-line-length remark-preset-lint-recommended remark-gfm
f20569fa
XL
28
29 # Run
30 - name: Check *.md files
31 run: git ls-files -z '*.md' | xargs -0 -n 1 -I {} ./node_modules/.bin/remark {} -u lint -f > /dev/null
32
33 # These jobs doesn't actually test anything, but they're only used to tell
34 # bors the build completed, as there is no practical way to detect when a
35 # workflow is successful listening to webhooks only.
36 #
37 # ALL THE PREVIOUS JOBS NEED TO BE ADDED TO THE `needs` SECTION OF THIS JOB!
38
39 end-success:
40 name: bors remark test finished
41 if: github.event.pusher.name == 'bors' && success()
42 runs-on: ubuntu-latest
43 needs: [remark]
44
45 steps:
46 - name: Mark the job as successful
47 run: exit 0
48
49 end-failure:
50 name: bors remark test finished
51 if: github.event.pusher.name == 'bors' && (failure() || cancelled())
52 runs-on: ubuntu-latest
53 needs: [remark]
54
55 steps:
56 - name: Mark the job as a failure
57 run: exit 1