Skip to content

Commit 51d2e04

Browse files
committed
test(actions): ✅ add cargo test and build only on pull request review
1 parent 0fa6649 commit 51d2e04

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.github/workflows/cargo-test.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: "Cargo test"
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
test:
7+
name: cargo test
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: dtolnay/rust-toolchain@stable
12+
- run: cargo test --all-features

.github/workflows/test-build-only.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: "test-on-pr"
22

3-
on: [pull_request]
3+
on: [pull_request_review]
44

55
# This workflow will build your tauri app without uploading it anywhere.
66

0 commit comments

Comments
 (0)