diff --git a/.github/workflows/tauri-cli.yml b/.github/workflows/tauri-cli.yml index 2d9e7fe25..47886a006 100644 --- a/.github/workflows/tauri-cli.yml +++ b/.github/workflows/tauri-cli.yml @@ -31,27 +31,20 @@ jobs: sudo apt install -y libgtk-3-dev libwebkit2gtk-4.1-dev librsvg2-dev patchelf at-spi2-core && \ (curl -fsSL https://ollama.com/install.sh | sudo -E sh && sleep 2) wait - - name: Test production build - run: npm run tauri build -- --bundles deb # Skip testing appimage, is this dangerous? It's slow... + - name: Test production build # Skip testing appimage, is this dangerous? It's slow... + run: | + npm run tauri build -- --ci --bundles deb + - name: Install production build + run: | + ls ./src-tauri/target/release/bundle/deb && sudo apt install -y ./src-tauri/target/release/bundle/deb/*.deb - name: Setup xvfb for screen 0 - run: Xvfb :1 -screen 0 1600x1200x24 & - - - name: Test beeai compiler - env: - DISPLAY: :1 run: | - PATH=./src-tauri/target/release/:$PATH - - for i in ./demos/beeai/*.py - do pdl compile beeai $i -g -o /tmp/z.json && jq .description /tmp/z.json - done + Xvfb :1 -screen 0 1600x1200x24 & - - name: Test pdl run against production build + - name: Test 'pdl run' against production build env: DISPLAY: :1 run: | - PATH=./src-tauri/target/release/:$PATH - # 1a. `run` subcommand errors due to missing required positional parameter pdl run && (echo "This should have failed" && exit 1) || (echo "Great, expected failure received" && exit 0)