From e71537b118e8717316955a5647ec8c1eced03f7e Mon Sep 17 00:00:00 2001 From: rodelgc Date: Fri, 12 May 2023 13:05:52 +0800 Subject: [PATCH] Disable reporting --- .github/workflows/smoke-test-daily.yml | 106 +++++++++++++------------ 1 file changed, 55 insertions(+), 51 deletions(-) diff --git a/.github/workflows/smoke-test-daily.yml b/.github/workflows/smoke-test-daily.yml index ad071b18bee..86a377d8ecc 100644 --- a/.github/workflows/smoke-test-daily.yml +++ b/.github/workflows/smoke-test-daily.yml @@ -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