Skip to content

Commit aa66656

Browse files
committed
Try testing Tauri on macOS
1 parent 4e5f5bd commit aa66656

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

.github/workflows/test-tauri.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Tauri Integration tests
2+
on:
3+
pull_request: # triggered for any PR updates (including new pushes to PR branch)
4+
5+
jobs:
6+
check-changes:
7+
name: Check for relevant changes
8+
runs-on: ubuntu-latest
9+
outputs:
10+
should_run: ${{ steps.check.outputs.should_run }}
11+
steps:
12+
- uses: actions/checkout@v6
13+
with:
14+
fetch-depth: 0
15+
- name: Check for changes
16+
id: check
17+
run: |
18+
git fetch origin ${{ github.base_ref }}
19+
if git diff --quiet origin/${{ github.base_ref }} -- packages/common packages/tauri; then
20+
echo "should_run=false" >> $GITHUB_OUTPUT
21+
else
22+
echo "should_run=true" >> $GITHUB_OUTPUT
23+
fi
24+
25+
test-tauri:
26+
name: Tauri integration tests macOS
27+
runs-on: macos-latest
28+
needs: check-changes
29+
if: needs.check-changes.outputs.should_run == 'true'
30+
timeout-minutes: 15
31+
32+
steps:
33+
- uses: actions/checkout@v6
34+
- name: Enable Corepack
35+
run: corepack enable
36+
- name: Setup Node.js
37+
uses: actions/setup-node@v6
38+
with:
39+
node-version-file: '.nvmrc'
40+
cache: pnpm
41+
42+
- name: Install dependencies
43+
run: pnpm install
44+
- name: Build
45+
run: pnpm run -r --filter "@powersync/tauri-plugin..." build
46+
- name: Compile test runner
47+
run: cargo build -p test-runner
48+
- name: Test
49+
working-directory: packages/tauri
50+
run: pnpm test

0 commit comments

Comments
 (0)