File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments