Skip to content

Commit

Permalink
Replace restricted chars in job name
Browse files Browse the repository at this point in the history
  • Loading branch information
alexslavr committed Jan 21, 2025
1 parent f6595f1 commit 4048dd7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/testcafe_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,25 +220,31 @@ jobs:
echo "$all_args"
pnpm run test $all_args
- name: Sanitize job name
if: ${{ failure() }}
run: echo "JOB_NAME=$(echo "${{ matrix.ARGS.name }}" | tr '/' '-')" >> $GITHUB_ENV

- name: Copy compared screenshot artifacts
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: compared-screenshots-${{ matrix.ARGS.name }}
name: compared-screenshots-${{ env.JOB_NAME }}
path: ${{ github.workspace }}/e2e/testcafe-devextreme/artifacts/compared-screenshots/**/*
if-no-files-found: ignore

- name: Copy failed test artifacts
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: failed-tests-${{ matrix.ARGS.name }}
name: failed-tests-${{ env.JOB_NAME }}
path: ${{ github.workspace }}/e2e/testcafe-devextreme/artifacts/failedtests/**/*
if-no-files-found: ignore

merge:
runs-on: devextreme-shr2
needs: testcafe
if: contains(needs.*.result, 'failure')

steps:
- name: Merge screenshot artifacts
uses: actions/upload-artifact/merge@v4
Expand Down

0 comments on commit 4048dd7

Please sign in to comment.