Test artifact upload

This commit is contained in:
rodelgc 2023-03-22 19:12:23 +08:00
parent 06da097968
commit 524ad3db3e
2 changed files with 7 additions and 4 deletions

View File

@ -2,8 +2,7 @@
s3_upload () {
aws s3 cp "$1" "$2" \
--recursive \
--only-show-errors
--recursive
}
upload_allure_results () {
@ -14,14 +13,14 @@ upload_allure_results () {
SOURCE="$ALLURE_RESULTS_DIR"
DESTINATION="$S3_BUCKET/artifacts/$GITHUB_RUN_ID/$ARTIFACT_NAME/allure-results"
s3_upload $SOURCE $DESTINATION
s3_upload "$SOURCE" "$DESTINATION"
}
upload_allure_report () {
SOURCE="$ALLURE_REPORT_DIR"
DESTINATION="$S3_BUCKET/artifacts/$GITHUB_RUN_ID/$ARTIFACT_NAME/allure-report"
s3_upload $SOURCE $DESTINATION
s3_upload "$SOURCE" "$DESTINATION"
}
upload_allure_results

View File

@ -203,6 +203,7 @@ jobs:
with:
report-name: e2e-wp-latest--partial--run-${{ github.run_number }}
playwright-config: ignore-plugin-tests.playwright.config.js
tests: basic.spec.js # mytodo remove this
env:
ADMIN_PASSWORD: ${{ secrets.RELEASE_TEST_ADMIN_PASSWORD }}
ADMIN_USER: ${{ secrets.RELEASE_TEST_ADMIN_USER }}
@ -405,6 +406,7 @@ jobs:
DEFAULT_TIMEOUT_OVERRIDE: 120000
with:
report-name: ${{ env.E2E_WP_LATEST_X_ARTIFACT }}
tests: basic.spec.js # mytodo remove this
- name: Upload Allure artifacts to bucket
if: success() || ( failure() && steps.run-e2e-composite-action.conclusion == 'failure' )
@ -527,6 +529,7 @@ jobs:
E2E_MAX_FAILURES: 15
with:
report-name: ${{ env.E2E_ARTIFACT }}
tests: basic.spec.js # mytodo remove this
- name: Upload Allure artifacts to bucket
if: success() || ( failure() && steps.run-e2e-composite-action.conclusion == 'failure' )
@ -626,6 +629,7 @@ jobs:
with:
playwright-config: ignore-plugin-tests.playwright.config.js
report-name: ${{ env.ARTIFACT_NAME }}
tests: basic.spec.js # mytodo remove this
env:
E2E_MAX_FAILURES: 15