Skip to content

Commit

Permalink
Run smoke tests if only libraries/illink changed but nothing in wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
akoeplinger committed Feb 7, 2024
1 parent 823a7c8 commit dd25732
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion eng/pipelines/common/templates/wasm-library-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,22 @@ jobs:
eq(dependencies.evaluate_paths.outputs['SetPathVars_wasm_chrome.containsChange'], true),
eq(dependencies.evaluate_paths.outputs['SetPathVars_wasm_specific_except_wbt_dbg.containsChange'], true))
]
# run smoke tests only if:
# - explicitly requested
# - libraries or illink changed and no wasm specific changes
- name: shouldRunSmokeOnlyVar
value: $[
or(
eq('${{ parameters.shouldRunSmokeOnly }}', 'true'),
and(
eq('${{ parameters.shouldRunSmokeOnly }}', 'onLibrariesAndIllinkChanges'),
ne(variables['wasmDarcDependenciesChanged'], true),
or(
eq(dependencies.evaluate_paths.outputs['SetPathVars_tools_illink.containsChange'], true),
eq(dependencies.evaluate_paths.outputs['SetPathVars_libraries.containsChange'], true)
)
),
ne(dependencies.evaluate_paths.outputs['SetPathVars_wasm_chrome.containsChange'], true),
ne(dependencies.evaluate_paths.outputs['SetPathVars_wasm_specific_except_wbt_dbg.containsChange'], true)
)
)
]
Expand Down

0 comments on commit dd25732

Please sign in to comment.