Skip to content

Commit fba1be7

Browse files
authored
verify tauri plugin versions in ci (#882)
* verify tauri plugin versions in ci * bruh * y * don't skip * maybe * man wat * rust? * -_- * gonna kms * final * test incompatible * we're back * remove js from clippy job
1 parent 50fe211 commit fba1be7

File tree

5 files changed

+447
-86
lines changed

5 files changed

+447
-86
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
runs-on: ubuntu-latest
1717
outputs:
1818
rust: ${{ steps.filter.outputs.rust }}
19+
tauri-plugins: ${{ steps.filter.outputs.tauri-plugins }}
1920
steps:
2021
- name: Checkout
2122
uses: actions/checkout@v4
@@ -32,6 +33,9 @@ jobs:
3233
- 'desktop/src-tauri/**'
3334
- 'Cargo.toml'
3435
- 'Cargo.lock'
36+
tauri-plugins:
37+
- 'Cargo.lock'
38+
- 'pnpm-lock.yaml'
3539
3640
typecheck:
3741
name: Typecheck
@@ -93,8 +97,6 @@ jobs:
9397
with:
9498
shared-key: ${{ matrix.settings.target }}
9599

96-
- uses: ./.github/actions/setup-js
97-
98100
- name: Create .env file in root
99101
run: |
100102
echo "VITE_ENVIRONMENT=production" >> .env
@@ -112,8 +114,8 @@ jobs:
112114
cat .env >> $GITHUB_ENV
113115
114116
- name: Run setup
115-
run: |
116-
pnpm cap-setup
117+
shell: bash
118+
run: node scripts/setup.js
117119

118120
- name: Run Clippy
119121
uses: actions-rs-plus/clippy-check@v2
@@ -189,3 +191,21 @@ jobs:
189191
pnpm tauri build --debug --target ${{ matrix.settings.target }} --no-bundle
190192
env:
191193
RUST_TARGET_TRIPLE: ${{ matrix.settings.target }}
194+
195+
tauri-plugins:
196+
name: Verify Tauri plugin versions
197+
runs-on: ubuntu-latest
198+
needs: changes
199+
if: needs.changes.outputs.tauri-plugins == 'true'
200+
steps:
201+
- name: Checkout
202+
uses: actions/checkout@v4
203+
204+
- name: Setup node
205+
uses: actions/setup-node@v3
206+
with:
207+
node-version: 20
208+
209+
- name: Run verify
210+
shell: bash
211+
run: node scripts/check-tauri-plugin-versions.js

apps/desktop/package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,18 @@
3939
"@solidjs/start": "^1.1.3",
4040
"@tanstack/solid-query": "^5.51.21",
4141
"@tauri-apps/api": "2.5.0",
42-
"@tauri-apps/plugin-clipboard-manager": "^2.2.1",
43-
"@tauri-apps/plugin-deep-link": "^2.2.0",
44-
"@tauri-apps/plugin-dialog": "2.0.1",
45-
"@tauri-apps/plugin-fs": "2.2.0",
46-
"@tauri-apps/plugin-http": "^2.4.4",
47-
"@tauri-apps/plugin-notification": "2.0.0",
48-
"@tauri-apps/plugin-opener": "^2.2.6",
49-
"@tauri-apps/plugin-os": "2.0.0",
50-
"@tauri-apps/plugin-process": "2.0.0",
51-
"@tauri-apps/plugin-shell": ">=2.0.1",
52-
"@tauri-apps/plugin-store": "2.1.0",
53-
"@tauri-apps/plugin-updater": "2.9.0",
42+
"@tauri-apps/plugin-clipboard-manager": "^2.3.0",
43+
"@tauri-apps/plugin-deep-link": "^2.4.1",
44+
"@tauri-apps/plugin-dialog": "^2.3.2",
45+
"@tauri-apps/plugin-fs": "^2.4.1",
46+
"@tauri-apps/plugin-http": "^2.5.1",
47+
"@tauri-apps/plugin-notification": "^2.3.0",
48+
"@tauri-apps/plugin-opener": "^2.4.0",
49+
"@tauri-apps/plugin-os": "^2.3.0",
50+
"@tauri-apps/plugin-process": "2.3.0",
51+
"@tauri-apps/plugin-shell": "^2.3.0",
52+
"@tauri-apps/plugin-store": "^2.3.0",
53+
"@tauri-apps/plugin-updater": "^2.9.0",
5454
"@ts-rest/core": "^3.52.1",
5555
"@types/react-tooltip": "^4.2.4",
5656
"cva": "npm:class-variance-authority@^0.7.0",

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"typecheck": "pnpm tsc -b",
2323
"web": "pnpm run --filter=@cap/web",
2424
"env-setup": "node scripts/env-cli.js",
25+
"check-tauri-versions": "node scripts/check-tauri-plugin-versions.js",
2526
"clean": "find . -name node_modules -o -name .next -o -name .output -o -name .turbo -o -name dist -type d -prune | xargs rm -rf"
2627
},
2728
"devDependencies": {

pnpm-lock.yaml

Lines changed: 73 additions & 70 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)