File tree Expand file tree Collapse file tree 3 files changed +20
-42
lines changed Expand file tree Collapse file tree 3 files changed +20
-42
lines changed Original file line number Diff line number Diff line change 1+ name : Check PR
2+ on : pull_request
3+
4+ jobs :
5+ only :
6+ name : Check formatting and links
7+ runs-on : ubuntu-18.04
8+ container :
9+ image : ghcr.io/void-linux/void-linux:latest-full-x86_64-musl
10+ steps :
11+ - name : Prepare container
12+ run : |
13+ xbps-install -Syu || xbps-install -yu xbps
14+ xbps-install -yu
15+ xbps-install -y mdbook-linkcheck vmdfmt git
16+ - uses : actions/checkout@v1
17+ - run : ./res/ci/format.sh
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11#! /bin/sh
22
3- echo " Installing mdbook-linkcheck"
4-
5- _version=" v0.7.0"
6- curl -sL -o ~ /bin/linkcheck.tar.gz " https://github.com/Michael-F-Bryan/mdbook-linkcheck/releases/download/${_version} /mdbook-linkcheck-${_version} -x86_64-unknown-linux-gnu.tar.gz"
7-
8- tar xvf ~ /bin/linkcheck.tar.gz -C ~ /bin
3+ # Fetch upstream
4+ git fetch git://github.com/void-linux/void-docs.git master
95
106echo " Checking links"
11-
12- RUST_LOG=linkcheck=debug ~ /bin/mdbook-linkcheck -s
7+ RUST_LOG=linkcheck=debug mdbook-linkcheck -s
138LINKCHECK=$?
149
15- echo " Installing Go"
16-
17- curl -sL -o ~ /bin/gimme https://raw.githubusercontent.com/travis-ci/gimme/master/gimme
18- chmod +x ~ /bin/gimme
19-
20- eval " $( gimme stable) "
21-
22- GO111MODULE=auto go get github.com/bobertlo/vmd/cmd/vmdfmt
23-
24- echo " Checking formatting"
25-
26- PATH=$PATH :$( go env GOPATH) /bin/
27-
28- if ! command -v git ; then
29- echo " You need git to run the CI scripts"
30- exit 1
31- fi
32-
33- if ! command -v vmdfmt ; then
34- echo " You need vmdfmt to run the CI scripts"
35- exit 1
36- fi
37-
38- # Fetch upstream
39- git fetch git://github.com/void-linux/void-docs.git master
40-
4110# Format them
4211printf " Formatting tree"
4312vmdfmt -l -w src/
You can’t perform that action at this time.
0 commit comments