File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 62
62
ninja-build \
63
63
nodejs \
64
64
python3.7 \
65
+ python3.7-venv \
65
66
sudo \
66
67
tar \
67
68
unzip \
Original file line number Diff line number Diff line change 11
11
build :
12
12
name : website
13
13
runs-on : ubuntu-latest
14
- container : ghcr.io/quick-lint/quick-lint-js-github-builder:v1
14
+ container : ghcr.io/quick-lint/quick-lint-js-github-builder:v3
15
15
env :
16
16
QLJS_COLLECT_COPYRIGHT_NO_WARNINGS : 1
17
17
steps :
40
40
- name : bundle site
41
41
run : cd website && zip -r ../website.zip www
42
42
43
+ - name : set up check-links
44
+ run : |
45
+ python3.7 -m venv ENV
46
+ ENV/bin/pip install bs4 requests
47
+ - name : check links (dev)
48
+ run : |
49
+ cd website/
50
+ yarn start localhost 9001 &
51
+ sleep 0.5 # HACK(strager): Wait for server to start.
52
+ cd ../
53
+ ./ENV/bin/python ./tools/check-links http://localhost:9001/
54
+ kill %1
55
+ shell : bash
56
+ - name : check links (build)
57
+ run : |
58
+ cd website/www/
59
+ python3.7 -m http.server 9002 &
60
+ sleep 0.5 # HACK(strager): Wait for server to start.
61
+ cd ../../
62
+ ./ENV/bin/python ./tools/check-links http://localhost:9002/
63
+ kill %1
64
+ shell : bash
65
+
43
66
- name : upload build to workflow
44
67
uses : actions/upload-artifact@v2
45
68
with :
You can’t perform that action at this time.
0 commit comments