Skip to content

Conversation

@GraysonKornberg
Copy link
Collaborator

No description provided.

@danielwildsmith danielwildsmith linked an issue Apr 3, 2025 that may be closed by this pull request
@zeim839
Copy link
Owner

zeim839 commented Apr 6, 2025

Instead of creating a separate GitHub action, you can run tests on all supported architectures by setting:

    "beforeBuildCommand": "npm run test && npm run build"

In src-tauri/tauri.conf.json. What we're basically doing in GitHub actions is calling npm run tauri build, so everything in beforeBuildCommand gets called before Tauri builds the binary. This tests everything for us and any test/lint errors automatically cause the GitHub actions to fail.

@zeim839 zeim839 merged commit 3dca833 into master Apr 6, 2025
4 checks passed
@zeim839 zeim839 deleted the testSetup branch April 6, 2025 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set up unit testing boilerplate

3 participants