Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 61ef436

Browse files
committed
test: tauri github actions test should apt install the deb
This also removes the beeai compiler test in that workflow, as we now cover that in the core rust interpreter tests. Signed-off-by: Nick Mitchell <[email protected]>
1 parent d1c407e commit 61ef436

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

.github/workflows/tauri-cli.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,27 +31,20 @@ jobs:
3131
sudo apt install -y libgtk-3-dev libwebkit2gtk-4.1-dev librsvg2-dev patchelf at-spi2-core && \
3232
(curl -fsSL https://ollama.com/install.sh | sudo -E sh && sleep 2)
3333
wait
34-
- name: Test production build
35-
run: npm run tauri build -- --bundles deb # Skip testing appimage, is this dangerous? It's slow...
34+
- name: Test production build # Skip testing appimage, is this dangerous? It's slow...
35+
run: |
36+
npm run tauri build -- --ci --bundles deb
37+
- name: Install production build
38+
run: |
39+
ls ./src-tauri/target/release/bundle/deb && sudo apt install -y ./src-tauri/target/release/bundle/deb/*.deb
3640
- name: Setup xvfb for screen 0
37-
run: Xvfb :1 -screen 0 1600x1200x24 &
38-
39-
- name: Test beeai compiler
40-
env:
41-
DISPLAY: :1
4241
run: |
43-
PATH=./src-tauri/target/release/:$PATH
44-
45-
for i in ./demos/beeai/*.py
46-
do pdl compile beeai $i -g -o /tmp/z.json && jq .description /tmp/z.json
47-
done
42+
Xvfb :1 -screen 0 1600x1200x24 &
4843
49-
- name: Test pdl run against production build
44+
- name: Test 'pdl run' against production build
5045
env:
5146
DISPLAY: :1
5247
run: |
53-
PATH=./src-tauri/target/release/:$PATH
54-
5548
# 1a. `run` subcommand errors due to missing required positional parameter
5649
pdl run && (echo "This should have failed" && exit 1) || (echo "Great, expected failure received" && exit 0)
5750

0 commit comments

Comments
 (0)