From b81f836e7a83806cb528b1542b091f1160a8bb73 Mon Sep 17 00:00:00 2001 From: TimeEngineer Date: Fri, 20 Jan 2023 11:41:48 +0100 Subject: [PATCH] Run web test if change instead of check --- .github/actions/paths-filter/filters.yml | 6 +++++- .github/workflows/ci.yml | 8 ++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/actions/paths-filter/filters.yml b/.github/actions/paths-filter/filters.yml index 4d922926f91..9c23d2c0ee3 100644 --- a/.github/actions/paths-filter/filters.yml +++ b/.github/actions/paths-filter/filters.yml @@ -9,6 +9,9 @@ rust: - Cargo.lock - rust-toolchain.toml +rust-platform-web: &rust-platform-web + - oxidation/libparsec/crates/platform_*/src/web/** + python: - *shared - parsec/** @@ -33,11 +36,12 @@ client-common: &client-common - oxidation/client/capacitor.config.ts - oxidation/client/babel.config.js - oxidation/client/tsconfig.json - - oxidation/bindings/common/** + - oxidation/bindings/generator/** client-web: - *shared - *client-common + - *rust-platform-web - oxidation/bindings/web/** - oxidation/client/tests/** - oxidation/client/jest.config.js diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 152cc67004c..c28c79f5a58 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -373,13 +373,9 @@ jobs: shell: bash run: echo OPENSSL_SRC_PERL=C:/Strawberry/perl/bin/perl >> $GITHUB_ENV - - name: Additional Check + - name: Additional Check (for packaging) if: startsWith(matrix.os, 'ubuntu') - run: | - set -ex - rustup target add wasm32-unknown-unknown - cargo check --no-default-features --features use-sodiumoxide - cargo check --target wasm32-unknown-unknown + run: cargo check --no-default-features --features use-sodiumoxide - name: Test rust codebase if: steps.rust-changes.outputs.run == 'true'