-
Notifications
You must be signed in to change notification settings - Fork 28
33 lines (31 loc) · 888 Bytes
/
test.yml
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
name: Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
name: Integration Tests
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: wasm32-unknown-unknown
- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: Install just
uses: extractions/setup-just@v1
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: Build test `tonic-web` server
run: just build-test-server
- name: Run test `tonic-web` server
run: just start-test-server &
- name: Run headless browser test
run: just test-headless