Disabled mutation tests filtering until it properly works

This commit is contained in:
Alejandro Celaya 2022-08-14 13:18:29 +02:00
parent a41835573b
commit 750a546faf

View File

@ -26,13 +26,15 @@ jobs:
path: build
- name: Resolve infection args
id: infection_args
run: |
BRANCH="${GITHUB_REF#refs/heads/}" |
if [[ $BRANCH == 'main' || $BRANCH == 'develop' ]]; then
echo "::set-output name=args::--logger-github=false"
else
echo "::set-output name=args::--logger-github=false --git-diff-lines --git-diff-base=develop"
fi;
run: echo "::set-output name=args::--logger-github=false"
# TODO Try to filter mutation tests to improve execution times. Investigate why --git-diff-lines --git-diff-base=develop does not work
# run: |
# BRANCH="${GITHUB_REF#refs/heads/}" |
# if [[ $BRANCH == 'main' || $BRANCH == 'develop' ]]; then
# echo "::set-output name=args::--logger-github=false"
# else
# echo "::set-output name=args::--logger-github=false --git-diff-lines --git-diff-base=develop"
# fi;
shell: bash
- if: ${{ inputs.test-group == 'unit' }}
run: composer infect:ci:unit -- ${{ steps.infection_args.outputs.args }}