-
Notifications
You must be signed in to change notification settings - Fork 29
46 lines (43 loc) · 1.41 KB
/
pdl-live-react-tests.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
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Viewer Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# cancel any prior runs for this workflow and this PR (or branch)
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
viewer:
name: Test PDL live viewer
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./pdl-live-react
steps:
- uses: actions/checkout@v4
- name: Set up node
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install Linux dependencies
# only if we ever add a drawer menu libappindicator3-dev
# re: at-spi2-core, Warning **: Error retrieving accessibility bus address:
run: sudo apt update && sudo apt install -y libgtk-3-dev libwebkit2gtk-4.1-dev librsvg2-dev patchelf at-spi2-core
- name: Install NodeJs dependencies
run: npm ci
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Test pdl-live viewer
run: npm test
- name: Test production build
run: npm run tauri build
- name: Setup xvfb for screen 0
run: Xvfb :1 -screen 0 1600x1200x24 &
- name: Run production build
env:
DISPLAY: :1
run: ./src-tauri/target/release/pdl run | grep Usage
- name: Tear down xvfb
run: killall Xvfb