14 runs-on: ubuntu-latest
19 uses: actions/checkout@v3.0.2
22 uses: actions/setup-node@v1.4.4
26 - name: Install remark
27 run: npm install remark-cli remark-lint remark-lint-maximum-line-length remark-preset-lint-recommended remark-gfm
29 - name: Install mdbook
32 curl -Lf https://github.com/rust-lang/mdBook/releases/download/v0.4.18/mdbook-v0.4.18-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook
33 echo `pwd`/mdbook >> $GITHUB_PATH
36 - name: Check *.md files
37 run: git ls-files -z '*.md' | xargs -0 -n 1 -I {} ./node_modules/.bin/remark {} -u lint -f > /dev/null
40 run: mdbook build book
42 # These jobs doesn't actually test anything, but they're only used to tell
43 # bors the build completed, as there is no practical way to detect when a
44 # workflow is successful listening to webhooks only.
46 # ALL THE PREVIOUS JOBS NEED TO BE ADDED TO THE `needs` SECTION OF THIS JOB!
49 name: bors remark test finished
50 if: github.event.pusher.name == 'bors' && success()
51 runs-on: ubuntu-latest
55 - name: Mark the job as successful
59 name: bors remark test finished
60 if: github.event.pusher.name == 'bors' && (failure() || cancelled())
61 runs-on: ubuntu-latest
65 - name: Mark the job as a failure