Repository navigation
49 lines (46 loc) · 1.64 KB
/
Copy pathtest.yml
File metadata and controls
49 lines (46 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Tests
# Master is tested by the deploy workflow before it deploys.
on:
push:
branches-ignore: [master]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run typecheck
- run: npm test
- run: npx playwright install --with-deps chromium
- run: npm run test:browser
# Checks against Blockwork at the commit in .blockwork-rev: the capability
# table copy, the slug cases and every official pack run by Blockwork's real
# runner.
blockwork:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- uses: dtolnay/rust-toolchain@stable
- name: Fetch Blockwork
run: |
git init -q ../Blockwork
git -C ../Blockwork fetch -q --depth 1 https://github.com/Blockworked/Blockwork "$(cat .blockwork-rev)"
git -C ../Blockwork -c advice.detachedHead=false checkout -q FETCH_HEAD
- run: sudo apt-get update -qq && sudo apt-get install -y --no-install-recommends pkg-config libssl-dev libxdo-dev libxkbcommon-dev
- run: node scripts/sync-capabilities.js --check
- run: npm ci
# With Blockwork beside it, the tests that compare against its files run.
- run: npm test
- name: Build Blockwork's runner
working-directory: ../Blockwork
run: cargo build -p blockwork-core --no-default-features
- run: npm run test:runtime -- ../Blockwork/target/debug/deps