Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 4 additions & 16 deletions .github/workflows/pdl-live-react-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,11 @@ jobs:
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 dependencies
run: |
npm ci & sudo apt update && sudo apt install -y libgtk-3-dev libwebkit2gtk-4.1-dev librsvg2-dev patchelf at-spi2-core
wait
- 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 -- --bundles deb # Skip testing appimage, is this dangerous? It's slow...
- 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
40 changes: 40 additions & 0 deletions .github/workflows/tauri-cli.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Tauri CLI 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 CLI using Tauri
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 dependencies
run: |
npm ci & sudo apt update && sudo apt install -y libgtk-3-dev libwebkit2gtk-4.1-dev librsvg2-dev patchelf at-spi2-core
wait
- name: Test production build
run: npm run tauri build -- --bundles deb # Skip testing appimage, is this dangerous? It's slow...
- 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
Loading