Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
devops: zip blob report artifact before uploading (#23667)
Yury Semikhatskya1cdae6bffce
diff --git a/.github/actions/download-artifact/action.yml b/.github/actions/download-artifact/action.ymlindex 874b202c06..78cbdb67d6 100644--- a/.github/actions/download-artifact/action.yml+++ b/.github/actions/download-artifact/action.yml@@ -1,5 +1,5 @@-name: 'Download blob report'-description: 'Download blob report from GitHub artifacts'+name: 'Download artifact'+description: 'Download artifact from GitHub'inputs:name:description: 'Name of the artifact to download'@@ -10,11 +10,11 @@ inputs:description: 'Directory with downloaded artifacts'required: truetype: string- default: 'blob-report'+ default: '.'runs:using: "composite"steps:- - name: Download blob report+ - name: Download artifactuses: actions/github-script@v6with:script: |@@ -35,6 +35,6 @@ runs:console.log('download result', result);const fs = require('fs');fs.writeFileSync(`${name}.zip`, Buffer.from(result.data));- - name: Unzip blob report+ - name: Unzip artifactshell: bashrun: unzip ${{ inputs.name }}.zip -d ${{ inputs.path }}diff --git a/.github/workflows/tests_primary.yml b/.github/workflows/tests_primary.ymlindex c5694b3c08..5cf1f575bb 100644--- a/.github/workflows/tests_primary.yml+++ b/.github/workflows/tests_primary.yml@@ -64,12 +64,18 @@ jobs:- name: Upload blob report to Azureif: always() && github.event_name == 'push'run: az storage blob upload-batch -s test-results/blob-report -d '$web/run-${{ github.run_id }}-${{ github.run_attempt }}-${{ github.sha }}' --connection-string "${{ secrets.AZURE_CONNECTION_STRING_FOR_BLOB_REPORT }}"+ - name: Zip blob report+ if: always() && github.event_name == 'pull_request'+ shell: bash+ run: |+ cd test-results+ zip -r ${{ github.workspace }}/blob-report.zip blob-report- name: Upload blob report to GitHubuses: actions/upload-artifact@v3if: always() && github.event_name == 'pull_request'with:name: blob-report-${{ github.run_attempt }}- path: test-results/blob-report+ path: blob-report.zipretention-days: 30- name: Write the pull request number in an fileif: always() && github.event_name == 'pull_request'@@ -154,12 +160,18 @@ jobs:- name: Upload blob report to Azureif: always() && github.event_name == 'push'run: az storage blob upload-batch -s test-results/blob-report -d '$web/run-${{ github.run_id }}-${{ github.run_attempt }}-${{ github.sha }}' --connection-string "${{ secrets.AZURE_CONNECTION_STRING_FOR_BLOB_REPORT }}"+ - name: Zip blob report+ if: always() && github.event_name == 'pull_request'+ shell: bash+ run: |+ cd test-results+ zip -r ${{ github.workspace }}/blob-report.zip blob-report- name: Upload blob report to GitHubuses: actions/upload-artifact@v3if: always() && github.event_name == 'pull_request'with:name: blob-report-${{ github.run_attempt }}- path: test-results/blob-report+ path: blob-report.zipretention-days: 30- name: Write the pull request number in an fileif: always() && github.event_name == 'pull_request'diff --git a/.github/workflows/tests_secondary.yml b/.github/workflows/tests_secondary.ymlindex 27686ff7ec..bdb16be7b1 100644--- a/.github/workflows/tests_secondary.yml+++ b/.github/workflows/tests_secondary.yml@@ -211,12 +211,18 @@ jobs:- name: Upload blob report to Azureif: always() && github.event_name == 'push'run: az storage blob upload-batch -s test-results/blob-report -d '$web/run-${{ github.run_id }}-${{ github.run_attempt }}-${{ github.sha }}' --connection-string "${{ secrets.AZURE_CONNECTION_STRING_FOR_BLOB_REPORT }}"+ - name: Zip blob report+ if: always() && github.event_name == 'pull_request'+ shell: bash+ run: |+ cd test-results+ zip -r ${{ github.workspace }}/blob-report.zip blob-report- name: Upload blob report to GitHubuses: actions/upload-artifact@v3if: always() && github.event_name == 'pull_request'with:name: blob-report-${{ github.run_attempt }}- path: test-results/blob-report+ path: blob-report.zipretention-days: 30- name: Write the pull request number in an fileif: always() && github.event_name == 'pull_request'