Skip to content

Commit

Permalink
EVA-160 - attempte to move artifacts to make them accessible
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseeproductions committed Sep 30, 2024
1 parent 3fbf7fc commit 9f41f40
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/tests-php-eva.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
test:
strategy:
matrix:
suite: [ end2end ]
suite: [ end2end ]
runs-on: ubuntu-latest
steps:
# ------------------------------------------------------------------------------
Expand Down Expand Up @@ -361,14 +361,32 @@ jobs:
if: steps.skip.outputs.value != 1
run: ${SLIC_BIN} run ${{ matrix.suite }} --debug
# ------------------------------------------------------------------------------
# Copy test outputs into workspace (On failure)
# ------------------------------------------------------------------------------
- name: Copy test outputs into workspace
if: ${{ steps.skip.outputs.value != 1 && failure() }}
run: |
mkdir -p "${GITHUB_WORKSPACE}/tests/_output/"
cp -r "${GITHUB_WORKSPACE}/../the-events-calendar/common/tests/_output/." "${GITHUB_WORKSPACE}/tests/_output/" || echo "No artifacts found to copy."
# ------------------------------------------------------------------------------
# Verify artifacts exist
# ------------------------------------------------------------------------------
- name: Verify artifacts exist
if: ${{ steps.skip.outputs.value != 1 && failure() }}
run: |
echo "Listing contents of '${GITHUB_WORKSPACE}/tests/_output/':"
ls -la "${GITHUB_WORKSPACE}/tests/_output/" || echo "No artifacts found."
# ------------------------------------------------------------------------------
# Upload artifacts (On failure)
# ------------------------------------------------------------------------------
- name: Upload artifacts
uses: actions/upload-artifact@v4
if: ${{ steps.skip.outputs.value != 1 && failure() }}
with:
name: output ${{ matrix.suite }}
path: ${GITHUB_WORKSPACE}/the-events-calendar/common/tests/_output/
path: tests/_output/
retention-days: 7
# ------------------------------------------------------------------------------
# Display current working directory and contents (On failure)
Expand Down

0 comments on commit 9f41f40

Please sign in to comment.