Disable reporting

This commit is contained in:
rodelgc 2023-05-12 13:05:52 +08:00
parent d99b122d5e
commit e71537b118
1 changed files with 55 additions and 51 deletions

View File

@ -211,6 +211,8 @@ jobs:
- name: Setup WooCommerce Monorepo
uses: ./.github/actions/setup-woocommerce-monorepo
with:
build-filters: woocommerce
- name: Launch wp-env e2e environment
working-directory: plugins/woocommerce
@ -232,7 +234,8 @@ jobs:
working-directory: plugins/woocommerce
env:
E2E_MAX_FAILURES: 15
run: pnpm exec playwright test --config=tests/e2e-pw/playwright.config.js
# mytodo remove basic.spec
run: pnpm exec playwright test --config=tests/e2e-pw/playwright.config.js basic.spec.js
- name: Generate E2E Test report.
if: success() || failure()
@ -307,55 +310,56 @@ jobs:
# -f s3_root=public \
# --repo woocommerce/woocommerce-test-reports
plugins-results:
name: Publish report on Smoke tests on trunk with plugins
if: |
( success() || failure() ) &&
! github.event.pull_request.head.repo.fork
runs-on: ubuntu-20.04
# needs: [e2e-tests, test-plugins, k6-tests]
needs: [test-plugins] # mytodo revert to the above
env:
GITHUB_TOKEN: ${{ secrets.REPORTS_TOKEN }}
RUN_ID: ${{ github.run_id }}
ARTIFACT: Smoke tests on trunk with ${{ matrix.plugin }} plugin installed (run ${{ github.run_number }})
strategy:
fail-fast: false
matrix:
include:
# mytodo uncomment
# - plugin: 'WooCommerce Payments'
# repo: 'automattic/woocommerce-payments'
# - plugin: 'WooCommerce PayPal Payments'
# repo: 'woocommerce/woocommerce-paypal-payments'
# - plugin: 'WooCommerce Shipping & Tax'
# repo: 'automattic/woocommerce-services'
# - plugin: 'WooCommerce Subscriptions'
# repo: WC_SUBSCRIPTIONS_REPO
# private: true
- plugin: 'Gutenberg'
repo: 'WordPress/gutenberg'
- plugin: 'Gutenberg - Nightly'
repo: 'bph/gutenberg'
steps:
- name: Download test report artifact
uses: actions/download-artifact@v3
with:
name: ${{ env.ARTIFACT }}
# plugins-results:
# name: Publish report on Smoke tests on trunk with plugins
# if: |
# ( success() || failure() ) &&
# ! github.event.pull_request.head.repo.fork
# runs-on: ubuntu-20.04
# # needs: [e2e-tests, test-plugins, k6-tests]
# needs: [test-plugins] # mytodo revert to the above
# env:
# GITHUB_TOKEN: ${{ secrets.REPORTS_TOKEN }}
# RUN_ID: ${{ github.run_id }}
# ARTIFACT: Smoke tests on trunk with ${{ matrix.plugin }} plugin installed (run ${{ github.run_number }})
# strategy:
# fail-fast: false
# matrix:
# include:
# # mytodo uncomment
# # - plugin: 'WooCommerce Payments'
# # repo: 'automattic/woocommerce-payments'
# # - plugin: 'WooCommerce PayPal Payments'
# # repo: 'woocommerce/woocommerce-paypal-payments'
# # - plugin: 'WooCommerce Shipping & Tax'
# # repo: 'automattic/woocommerce-services'
# # - plugin: 'WooCommerce Subscriptions'
# # repo: WC_SUBSCRIPTIONS_REPO
# # private: true
# - plugin: 'Gutenberg'
# repo: 'WordPress/gutenberg'
# - plugin: 'Gutenberg - Nightly'
# repo: 'bph/gutenberg'
# steps:
# - name: Download test report artifact
# uses: actions/download-artifact@v3
# with:
# name: ${{ env.ARTIFACT }}
- name: Get slug
id: get-slug
uses: actions/github-script@v6
with:
result-encoding: string
script: return "${{ matrix.repo }}".split( '/' ).pop()
# # mytodo fix this, same slug between Gutenberg and its nightly
# - name: Get slug
# id: get-slug
# uses: actions/github-script@v6
# with:
# result-encoding: string
# script: return "${{ matrix.repo }}".split( '/' ).pop()
- name: Publish reports
run: |
gh workflow run publish-test-reports-daily-plugins.yml \
-f run_id=$RUN_ID \
-f artifact="${{ env.ARTIFACT }}" \
-f plugin="${{ matrix.plugin }}" \
-f slug="${{ steps.get-slug.outputs.result }}" \
-f s3_root=public \
--repo woocommerce/woocommerce-test-reports
# - name: Publish reports
# run: |
# gh workflow run publish-test-reports-daily-plugins.yml \
# -f run_id=$RUN_ID \
# -f artifact="${{ env.ARTIFACT }}" \
# -f plugin="${{ matrix.plugin }}" \
# -f slug="${{ steps.get-slug.outputs.result }}" \
# -f s3_root=public \
# --repo woocommerce/woocommerce-test-reports