-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (41 loc) · 1.18 KB
/
build.yml
File metadata and controls
51 lines (41 loc) · 1.18 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
50
51
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
name: Build and Test
jobs:
build-and-test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Build Rust workspace
run: cargo build --workspace
- name: Run Rust tests
run: cargo test --workspace
- name: Install Node.js dependencies for client
working-directory: crates/observation-tools-client
run: npm install
- name: Build Node.js client
working-directory: crates/observation-tools-client
run: npm run build:debug
- name: Install Playwright dependencies
working-directory: tests
run: npm install
- name: Install Playwright browsers
working-directory: tests
run: npx playwright install --with-deps chromium
- name: Run integration tests
working-directory: tests
run: npm test