Commit eeee8cd
committed
ci: build and test through Bazel
Replaces the per-subproject install and build steps with 'bazel test //...' and
'bazel build //:site'. Bazel supplies the Node toolchain, npm dependencies and
Playwright browsers, so there is no setup-node, package-manager install or
playwright install step -- which was the point of the migration. The tests now
run on pull requests; previously they ran nowhere.
setup-bazel's caches all default to false, so they are enabled explicitly.
The upload and gh-pages deploy jobs are unchanged. Only the way out/ is produced
changes: bazel-bin is a symlink the artifact upload does not follow, so the tree
is staged with cp -RL. Bazel's outputs are mode 555 and the deploy job commits
this tree, so modes are normalised to 644/755 -- without that every deployed
file would flip to executable and the first deploy would diff the whole tree.
Verified by running the exact sequence locally: the staged artifact is 38 files,
byte-identical to the pre-migration CI output, with file modes matching too.1 parent 67e6cf7 commit eeee8cd
1 file changed
Lines changed: 21 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
24 | 34 | | |
25 | 35 | | |
26 | 36 | | |
| |||
0 commit comments