From e44a76795648acbf05b069b93941414cf9f56590 Mon Sep 17 00:00:00 2001 From: doodspav Date: Fri, 22 Dec 2023 04:20:32 +0000 Subject: [PATCH] GHI #20 Move label regex to env, because windows doesn't like bash --- .github/workflows/reusable-test-native.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/reusable-test-native.yml b/.github/workflows/reusable-test-native.yml index d4b6dcc75..58f5c0bc3 100644 --- a/.github/workflows/reusable-test-native.yml +++ b/.github/workflows/reusable-test-native.yml @@ -158,19 +158,13 @@ jobs: - name: Test patomic if: env.SKIP_JOB != 'true' continue-on-error: true - shell: bash + env: + LABEL_REGEX: ${{ matrix.kind == 'coverage' && '^(ut)$' || '^(.*)$' }} run: | cd ${{ env.ROOT_PATH }} - # only run UTs for coverage - label_regex="^(.*)$" - if [[ "${{ matrix.kind }}" == 'coverage' ]]; then - label_regex="^(ut)$" - fi - - # run test cd patomic/build - ctest --label-regex "${label_regex}" --verbose --output-junit Testing/Temporary/results.xml --build-config ${{ matrix.cmake_build_type }} . + ctest --label-regex "${{ env.LABEL_REGEX }}" --verbose --output-junit Testing/Temporary/results.xml --build-config ${{ matrix.cmake_build_type }} . - name: Prepare Test Results if: env.SKIP_JOB != 'true'