Skip to content

Commit

Permalink
test publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuafernandes committed Feb 24, 2025
1 parent 9bf0a5a commit 78ce55d
Show file tree
Hide file tree
Showing 3 changed files with 407 additions and 182 deletions.
30 changes: 14 additions & 16 deletions .github/actions/testResults/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,20 @@ runs:
run: |
cp -r acceptance-tests/build/reports/tests/acceptanceTest build/test-reports/
- name: Gather extra artifacts for acceptance tests
if: "${{ github.event.inputs.suiteName == 'acceptanceTests' }}"
shell: bash
run: |
FILES=`find . -name test-artifacts`
for FILE in $FILES
do
MODULE=`echo "$FILE" | sed -e 's@./\(.*\)/build/test-artifacts@\1@'`
TARGET="build/test-artifacts/$MODULE"
mkdir -p "$TARGET"
cp -rf ${FILE}/*/* "$TARGET"
done
tree build/test-artifacts/
- name: Gather test reports
shell: bash
run: |
Expand All @@ -53,20 +67,6 @@ runs:
fi
tree build/test-reports/
- name: Gather extra artifacts for acceptance tests
if: "${{ github.event.inputs.suiteName == 'acceptanceTests' }}"
shell: bash
run: |
FILES=`find . -name test-artifacts`
for FILE in $FILES
do
MODULE=`echo "$FILE" | sed -e 's@./\(.*\)/build/test-artifacts@\1@'`
TARGET="build/test-artifacts/$MODULE"
mkdir -p "$TARGET"
cp -rf ${FILE}/*/* "$TARGET"
done
tree build/test-artifacts/
- name: Publish Test Results and Reports
uses: actions/upload-artifact@v4
if: always()
Expand All @@ -78,6 +78,4 @@ runs:
build/test-output/
build/test-artifacts/
build/test-reports/
Loading

0 comments on commit 78ce55d

Please sign in to comment.