@@ -10,6 +10,9 @@ inputs:
1010 snapshot-license-id :
1111 description : ' snapshot-enabled license id to use for e2e tests'
1212 required : true
13+ snapshot-license :
14+ description : ' snapshot-enabled license (b64) to use for e2e tests'
15+ required : true
1316 license-id :
1417 description : ' license id to use for e2e tests'
1518 required : true
@@ -22,6 +25,12 @@ inputs:
2225 testim-branch :
2326 description : ' testim branch'
2427 required : true
28+ dr-aws-access-key-id :
29+ description : ' Disaster Recovery AWS Access Key ID'
30+ required : true
31+ dr-aws-secret-access-key :
32+ description : ' Disaster Recovery AWS Secret Access Key'
33+ required : true
2534
2635runs :
2736 using : composite
8089 export AIRGAP_LICENSE_ID=${{ inputs.airgap-license-id }}
8190 export SNAPSHOT_LICENSE_ID=${{ inputs.snapshot-license-id }}
8291 echo "${{ inputs.license }}" | base64 --decode > e2e/license.yaml
92+ echo "${{ inputs.snapshot-license }}" | base64 --decode > e2e/snapshot-license.yaml
8393 export TESTIM_ACCESS_TOKEN=${{ inputs.testim-access-token }}
8494 export TESTIM_BRANCH=${{ inputs.testim-branch }}
95+ export DR_AWS_S3_ENDPOINT=https://s3.amazonaws.com
96+ export DR_AWS_S3_REGION=us-east-1
97+ export DR_AWS_S3_BUCKET=kots-testim-snapshots
98+ export DR_AWS_S3_PREFIX=${{ inputs.test-name }}-${{ github.run_id }}
99+ export DR_AWS_ACCESS_KEY_ID=${{ inputs.dr-aws-access-key-id }}
100+ export DR_AWS_SECRET_ACCESS_KEY=${{ inputs.dr-aws-secret-access-key }}
85101 make e2e-test TEST_NAME=${{ inputs.test-name }}
86102 - name : Upload Host Support Bundle
87103 uses : actions/upload-artifact@v4
@@ -95,6 +111,29 @@ runs:
95111 with :
96112 name : ${{ github.job }}-support-bundle-cluster.tar.gz
97113 path : ./e2e/support-bundle-cluster.tar.gz
114+ - name : Upload Playwright Report
115+ id : upload-playwright-report
116+ uses : actions/upload-artifact@v4
117+ if : ${{ failure() }}
118+ with :
119+ name : ${{ github.job }}-playwright-report.tar.gz
120+ path : ./e2e/playwright-report.tar.gz
121+ - name : Print instructions to view Playwright report
122+ if : ${{ failure() && steps.upload-playwright-report.outputs.artifact-url != '' }}
123+ run : |
124+ echo -e "\e[1;33m┌──────────────────────────────────────────────────────────────────────────────────────────────────────┐\e[0m"
125+ echo -e "\e[1;33m To view the Playwright test report: \e[0m"
126+ echo -e "\e[1;33m \e[0m"
127+ echo -e "\e[1;33m 1- Download & extract the report from: \e[0m"
128+ echo -e "\e[1;33m \e[0m"
129+ echo -e "\e[1;34m ${{ steps.upload-playwright-report.outputs.artifact-url }} \e[0m"
130+ echo -e "\e[1;33m \e[0m"
131+ echo -e "\e[1;33m 2- From inside the extracted directory, run: \e[0m"
132+ echo -e "\e[1;33m \e[0m"
133+ echo -e "\e[1;32m npx playwright show-report . \e[0m"
134+ echo -e "\e[1;33m \e[0m"
135+ echo -e "\e[1;33m└──────────────────────────────────────────────────────────────────────────────────────────────────────┘\e[0m"
136+ shell : bash
98137 # - name: Setup upterm session (ssh)
99138 # uses: lhotari/action-upterm@v1
100139 # if: always()
0 commit comments