From 13cd3e179bf221859d645226f8edeb2c5e208393 Mon Sep 17 00:00:00 2001 From: Frank Noirot Date: Thu, 14 Mar 2024 14:06:04 -0400 Subject: [PATCH] Only run cargo-test GH Action when wasm-lib is updated (#1718) * Only run cargo-test GH Action when wasm-lib is updated Because we don't care about src-tauri's Rust code in this action * $APPDATA !== $APPCONFIG on Linux + change the bundle identifier back * Undo that commit, wrong branch * Change approach to ignore the Tauri Rust files instead * Switch back to only check wasm-lib --- .github/workflows/cargo-test.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cargo-test.yml b/.github/workflows/cargo-test.yml index ad12e77609..5729f27d9e 100644 --- a/.github/workflows/cargo-test.yml +++ b/.github/workflows/cargo-test.yml @@ -3,14 +3,15 @@ on: branches: - main paths: - - '**.rs' + - src/wasm-lib/**.rs' - '**/Cargo.toml' - '**/Cargo.lock' - '**/rust-toolchain.toml' - .github/workflows/cargo-test.yml + pull_request: paths: - - '**.rs' + - src/wasm-lib/**.rs' - '**/Cargo.toml' - '**/Cargo.lock' - '**/rust-toolchain.toml' @@ -20,7 +21,7 @@ permissions: read-all concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true -name: cargo test +name: cargo test of wasm-lib jobs: cargotest: name: cargo test