Skip to content

Commit

Permalink
GHI #20 Move label regex to env, because windows doesn't like bash
Browse files Browse the repository at this point in the history
  • Loading branch information
doodspav committed Dec 22, 2023
1 parent e8e2b62 commit e44a767
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/reusable-test-native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit e44a767

Please sign in to comment.