ci: run frontend lint/typecheck/build and cargo test on PRs#75
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Expands the
desktopworkflow from the single tauri-version preflight into a full PR/main test gate, so a regression is caught on the PR instead of first surfacing in the release build (which only runs on a tag — exactly how the 0.8.0 version-mismatch slipped through).Adds two jobs alongside the existing
tauri-versionscheck:bun run build(also generates the gitignoredrouteTree.gen.ts), thentsc --noEmit, theneslint.generate_context!embeds../distat compile time), thencargo test --workspace --locked: the unit tests plustests/bindings.rs, the drift guard that fails whensrc/bindings.tsis stale.--lockedalso assertsCargo.lockis committed in sync.#[ignore]'d live-AWS tests are skipped, so no credentials are needed.Also adds a
typecheckscript toapps/desktop/package.jsonso the same check has a local command, and adds aconcurrencygroup so newer pushes supersede in-flight runs.Verified locally on the current tree:
cargo test --workspace --locked→ 38 passed / 0 failed / 3 ignored, drift guard ok;tsc --noEmitandeslintclean;actionlintapproves the workflow. This PR edits bothdesktop.ymlandapps/desktop/package.json, so all three jobs run on it.