2021-04-01 20:17:34 +00:00
|
|
|
name: Smoke test daily
|
|
|
|
on:
|
2022-12-06 03:22:49 +00:00
|
|
|
schedule:
|
|
|
|
- cron: '25 3 * * *'
|
2022-05-17 19:29:16 +00:00
|
|
|
workflow_dispatch:
|
2022-05-16 09:59:40 +00:00
|
|
|
|
2022-10-21 16:07:53 +00:00
|
|
|
env:
|
|
|
|
API_ARTIFACT: api-daily--run-${{ github.run_number }}
|
|
|
|
E2E_ARTIFACT: e2e-daily--run-${{ github.run_number }}
|
|
|
|
FORCE_COLOR: 1
|
|
|
|
BRANCH_NAME: ${{ github.ref_name }}
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2023-01-02 17:28:11 +00:00
|
|
|
permissions: {}
|
|
|
|
|
2021-04-01 20:17:34 +00:00
|
|
|
jobs:
|
2023-01-18 17:12:55 +00:00
|
|
|
api-tests:
|
|
|
|
name: API tests on nightly build
|
2022-04-27 01:28:56 +00:00
|
|
|
runs-on: ubuntu-20.04
|
2023-01-02 17:28:11 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
2022-05-16 09:59:40 +00:00
|
|
|
env:
|
2023-01-18 17:12:55 +00:00
|
|
|
ALLURE_RESULTS_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/api-core-tests/test-results/allure-results
|
|
|
|
ALLURE_REPORT_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/api-core-tests/test-results/allure-report
|
2022-04-08 00:19:25 +00:00
|
|
|
steps:
|
2022-05-17 18:48:24 +00:00
|
|
|
- uses: actions/checkout@v3
|
2022-04-08 00:19:25 +00:00
|
|
|
with:
|
2022-10-21 16:07:53 +00:00
|
|
|
ref: ${{ env.BRANCH_NAME }}
|
2021-04-01 20:17:34 +00:00
|
|
|
|
2022-09-13 01:55:03 +00:00
|
|
|
- name: Setup WooCommerce Monorepo
|
|
|
|
uses: ./.github/actions/setup-woocommerce-monorepo
|
2022-10-21 16:07:53 +00:00
|
|
|
with:
|
|
|
|
install-filters: woocommerce
|
|
|
|
build: false
|
2021-12-09 21:07:13 +00:00
|
|
|
|
2023-01-18 17:12:55 +00:00
|
|
|
- name: Run API tests.
|
2022-05-12 13:34:55 +00:00
|
|
|
working-directory: plugins/woocommerce
|
2022-04-08 00:19:25 +00:00
|
|
|
env:
|
2023-01-18 17:12:55 +00:00
|
|
|
BASE_URL: ${{ secrets.SMOKE_TEST_URL }}
|
|
|
|
USER_KEY: ${{ secrets.SMOKE_TEST_ADMIN_USER }}
|
|
|
|
USER_SECRET: ${{ secrets.SMOKE_TEST_ADMIN_PASSWORD }}
|
|
|
|
DEFAULT_TIMEOUT_OVERRIDE: 120000
|
|
|
|
run: pnpm exec playwright test --config=tests/api-core-tests/playwright.config.js hello.test.js
|
2022-10-21 16:07:53 +00:00
|
|
|
|
2023-01-18 17:12:55 +00:00
|
|
|
- name: Generate API Test report.
|
2022-12-06 03:22:49 +00:00
|
|
|
if: success() || failure()
|
2022-10-21 16:07:53 +00:00
|
|
|
working-directory: plugins/woocommerce
|
2022-10-24 23:53:46 +00:00
|
|
|
run: pnpm exec allure generate --clean ${{ env.ALLURE_RESULTS_DIR }} --output ${{ env.ALLURE_REPORT_DIR }}
|
2022-05-31 18:57:04 +00:00
|
|
|
|
2023-01-18 17:12:55 +00:00
|
|
|
- name: Archive API test report
|
2022-12-06 03:22:49 +00:00
|
|
|
if: success() || failure()
|
2022-10-21 16:07:53 +00:00
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
2023-01-18 17:12:55 +00:00
|
|
|
name: ${{ env.API_ARTIFACT }}
|
2022-10-21 16:07:53 +00:00
|
|
|
path: |
|
2022-10-24 23:53:46 +00:00
|
|
|
${{ env.ALLURE_RESULTS_DIR }}
|
|
|
|
${{ env.ALLURE_REPORT_DIR }}
|
2022-10-21 16:07:53 +00:00
|
|
|
if-no-files-found: ignore
|
|
|
|
retention-days: 5
|
2023-01-18 17:12:55 +00:00
|
|
|
|
|
|
|
e2e-tests:
|
|
|
|
name: E2E tests on nightly build
|
2022-10-21 16:07:53 +00:00
|
|
|
runs-on: ubuntu-20.04
|
2023-01-02 17:28:11 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
2023-01-18 17:12:55 +00:00
|
|
|
needs: [api-tests]
|
2022-10-24 23:53:46 +00:00
|
|
|
env:
|
2023-01-18 17:12:55 +00:00
|
|
|
ADMIN_PASSWORD: ${{ secrets.SMOKE_TEST_ADMIN_PASSWORD }}
|
|
|
|
ADMIN_USER: ${{ secrets.SMOKE_TEST_ADMIN_USER }}
|
|
|
|
ADMIN_USER_EMAIL: ${{ secrets.SMOKE_TEST_ADMIN_USER_EMAIL }}
|
|
|
|
ALLURE_REPORT_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/e2e-pw/test-results/allure-report
|
|
|
|
ALLURE_RESULTS_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/e2e-pw/test-results/allure-results
|
|
|
|
BASE_URL: ${{ secrets.SMOKE_TEST_URL }}
|
|
|
|
CUSTOMER_PASSWORD: ${{ secrets.SMOKE_TEST_CUSTOMER_PASSWORD }}
|
|
|
|
CUSTOMER_USER: ${{ secrets.SMOKE_TEST_CUSTOMER_USER }}
|
|
|
|
DEFAULT_TIMEOUT_OVERRIDE: 120000
|
|
|
|
|
2022-10-21 16:07:53 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
ref: ${{ env.BRANCH_NAME }}
|
|
|
|
|
|
|
|
- name: Setup WooCommerce Monorepo
|
|
|
|
uses: ./.github/actions/setup-woocommerce-monorepo
|
|
|
|
with:
|
|
|
|
install-filters: woocommerce
|
|
|
|
build: false
|
|
|
|
|
2023-01-18 17:12:55 +00:00
|
|
|
- name: Download and install Chromium browser.
|
|
|
|
working-directory: plugins/woocommerce
|
|
|
|
run: pnpm exec playwright install chromium
|
|
|
|
|
|
|
|
- name: Run 'Update WooCommerce' test.
|
2022-05-31 18:57:04 +00:00
|
|
|
working-directory: plugins/woocommerce
|
|
|
|
env:
|
2023-01-18 17:12:55 +00:00
|
|
|
UPDATE_WC: true
|
|
|
|
run: pnpm exec playwright test --config=tests/e2e-pw/daily.playwright.config.js update-woocommerce.spec.js
|
2022-05-31 18:57:04 +00:00
|
|
|
|
2023-01-18 17:12:55 +00:00
|
|
|
- name: Run the rest of E2E tests.
|
|
|
|
timeout-minutes: 60
|
|
|
|
working-directory: plugins/woocommerce
|
|
|
|
env:
|
|
|
|
E2E_MAX_FAILURES: 25
|
|
|
|
RESET_SITE: true
|
|
|
|
run: pnpm exec playwright test --config=tests/e2e-pw/playwright.config.js
|
|
|
|
|
|
|
|
- name: Generate Playwright E2E Test report.
|
2022-12-06 03:22:49 +00:00
|
|
|
if: success() || failure()
|
2022-10-21 16:07:53 +00:00
|
|
|
working-directory: plugins/woocommerce
|
2022-10-24 23:53:46 +00:00
|
|
|
run: pnpm exec allure generate --clean ${{ env.ALLURE_RESULTS_DIR }} --output ${{ env.ALLURE_REPORT_DIR }}
|
2022-10-21 16:07:53 +00:00
|
|
|
|
2023-01-18 17:12:55 +00:00
|
|
|
- name: Archive E2E test report
|
2022-12-06 03:22:49 +00:00
|
|
|
if: success() || failure()
|
2022-05-31 18:57:04 +00:00
|
|
|
uses: actions/upload-artifact@v3
|
2022-05-16 09:59:40 +00:00
|
|
|
with:
|
2023-01-18 17:12:55 +00:00
|
|
|
name: ${{ env.E2E_ARTIFACT }}
|
2022-05-16 09:59:40 +00:00
|
|
|
path: |
|
2022-10-24 23:53:46 +00:00
|
|
|
${{ env.ALLURE_RESULTS_DIR }}
|
|
|
|
${{ env.ALLURE_REPORT_DIR }}
|
2022-10-21 16:07:53 +00:00
|
|
|
if-no-files-found: ignore
|
2022-05-31 18:57:04 +00:00
|
|
|
retention-days: 5
|
2022-05-12 13:34:55 +00:00
|
|
|
|
2022-10-21 16:07:53 +00:00
|
|
|
k6-tests:
|
2022-12-06 03:22:49 +00:00
|
|
|
name: k6 tests on nightly build
|
2022-10-21 16:07:53 +00:00
|
|
|
runs-on: ubuntu-20.04
|
2023-01-02 17:28:11 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
2022-10-21 16:07:53 +00:00
|
|
|
needs: [api-tests]
|
2022-12-06 03:22:49 +00:00
|
|
|
if: success() || failure()
|
2022-10-21 16:07:53 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
ref: ${{ env.BRANCH_NAME }}
|
|
|
|
|
|
|
|
- name: Setup WooCommerce Monorepo
|
|
|
|
uses: ./.github/actions/setup-woocommerce-monorepo
|
|
|
|
with:
|
|
|
|
install-filters: woocommerce
|
|
|
|
build: false
|
|
|
|
|
|
|
|
- name: Download and install Chromium browser.
|
|
|
|
working-directory: plugins/woocommerce
|
|
|
|
run: pnpm exec playwright install chromium
|
|
|
|
|
2022-06-29 22:01:37 +00:00
|
|
|
- name: Update performance test site with E2E test
|
|
|
|
working-directory: plugins/woocommerce
|
|
|
|
env:
|
2022-10-21 16:07:53 +00:00
|
|
|
BASE_URL: ${{ secrets.SMOKE_TEST_PERF_URL }}/
|
|
|
|
ADMIN_USER: ${{ secrets.SMOKE_TEST_PERF_ADMIN_USER }}
|
|
|
|
ADMIN_PASSWORD: ${{ secrets.SMOKE_TEST_PERF_ADMIN_PASSWORD }}
|
|
|
|
CUSTOMER_USER: ${{ secrets.SMOKE_TEST_PERF_ADMIN_USER }}
|
|
|
|
CUSTOMER_PASSWORD: ${{ secrets.SMOKE_TEST_PERF_ADMIN_PASSWORD }}
|
|
|
|
UPDATE_WC: true
|
|
|
|
DEFAULT_TIMEOUT_OVERRIDE: 120000
|
2022-06-29 22:01:37 +00:00
|
|
|
run: |
|
2022-10-21 16:07:53 +00:00
|
|
|
pnpm exec playwright test --config=tests/e2e-pw/playwright.config.js update-woocommerce.spec.js
|
2022-06-29 22:01:37 +00:00
|
|
|
continue-on-error: true
|
|
|
|
|
|
|
|
- name: Install k6
|
|
|
|
run: |
|
|
|
|
curl https://github.com/grafana/k6/releases/download/v0.33.0/k6-v0.33.0-linux-amd64.tar.gz -L | tar xvz --strip-components 1
|
|
|
|
|
|
|
|
- name: Run k6 smoke tests
|
|
|
|
env:
|
|
|
|
URL: ${{ secrets.SMOKE_TEST_PERF_URL }}
|
|
|
|
HOST: ${{ secrets.SMOKE_TEST_PERF_HOST }}
|
|
|
|
A_USER: ${{ secrets.SMOKE_TEST_PERF_ADMIN_USER }}
|
|
|
|
A_PW: ${{ secrets.SMOKE_TEST_PERF_ADMIN_PASSWORD }}
|
|
|
|
C_USER: ${{ secrets.SMOKE_TEST_PERF_ADMIN_USER }}
|
|
|
|
C_PW: ${{ secrets.SMOKE_TEST_PERF_ADMIN_PASSWORD }}
|
2022-12-28 10:28:17 +00:00
|
|
|
P_ID: 22733
|
2022-06-29 22:01:37 +00:00
|
|
|
run: |
|
|
|
|
./k6 run plugins/woocommerce/tests/performance/tests/gh-action-daily-ext-requests.js
|
|
|
|
|
2022-04-08 00:19:25 +00:00
|
|
|
test-plugins:
|
2022-12-06 03:22:49 +00:00
|
|
|
name: Smoke tests on trunk with ${{ matrix.plugin }} plugin installed
|
2022-04-27 01:28:56 +00:00
|
|
|
runs-on: ubuntu-20.04
|
2023-01-02 17:28:11 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
2023-01-18 17:12:55 +00:00
|
|
|
needs: [api-tests]
|
2022-10-21 16:07:53 +00:00
|
|
|
env:
|
|
|
|
USE_WP_ENV: 1
|
2022-10-24 23:53:46 +00:00
|
|
|
ALLURE_RESULTS_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/e2e-pw/allure-results
|
|
|
|
ALLURE_REPORT_DIR: ${{ github.workspace }}/plugins/woocommerce/tests/e2e-pw/allure-report
|
2022-04-08 00:19:25 +00:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- 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: 'WordPress SEO' # Yoast SEO in the UI, but the slug is wordpress-seo
|
|
|
|
repo: 'Yoast/wordpress-seo'
|
|
|
|
- plugin: 'Contact Form 7'
|
|
|
|
repo: 'takayukister/contact-form-7'
|
|
|
|
steps:
|
2022-05-17 18:48:24 +00:00
|
|
|
- uses: actions/checkout@v3
|
2022-04-08 00:19:25 +00:00
|
|
|
with:
|
2022-10-21 16:07:53 +00:00
|
|
|
ref: ${{ env.BRANCH_NAME }}
|
2021-12-09 21:07:13 +00:00
|
|
|
|
2022-10-21 16:07:53 +00:00
|
|
|
- name: Setup WooCommerce Monorepo
|
|
|
|
uses: ./.github/actions/setup-woocommerce-monorepo
|
2021-12-09 21:07:13 +00:00
|
|
|
|
2022-10-21 16:07:53 +00:00
|
|
|
- name: Launch wp-env e2e environment
|
|
|
|
working-directory: plugins/woocommerce
|
|
|
|
run: pnpm env:test --filter=woocommerce
|
2021-12-09 21:07:13 +00:00
|
|
|
|
2022-10-21 16:07:53 +00:00
|
|
|
- name: Download and install Chromium browser.
|
|
|
|
working-directory: plugins/woocommerce
|
|
|
|
run: pnpm exec playwright install chromium
|
2022-04-08 00:19:25 +00:00
|
|
|
|
2022-10-21 16:07:53 +00:00
|
|
|
- name: Run 'Upload plugin' test
|
|
|
|
working-directory: plugins/woocommerce
|
2022-04-08 00:19:25 +00:00
|
|
|
env:
|
|
|
|
PLUGIN_REPOSITORY: ${{ matrix.private && secrets[matrix.repo] || matrix.repo }}
|
|
|
|
PLUGIN_NAME: ${{ matrix.plugin }}
|
|
|
|
GITHUB_TOKEN: ${{ secrets.E2E_GH_TOKEN }}
|
2022-10-21 16:07:53 +00:00
|
|
|
run: pnpm exec playwright test --config=tests/e2e-pw/playwright.config.js upload-plugin.spec.js
|
|
|
|
|
|
|
|
- name: Run the rest of E2E tests
|
|
|
|
working-directory: plugins/woocommerce
|
|
|
|
env:
|
|
|
|
E2E_MAX_FAILURES: 15
|
2022-12-28 10:28:17 +00:00
|
|
|
run: pnpm exec playwright test --config=tests/e2e-pw/playwright.config.js
|
2022-10-21 16:07:53 +00:00
|
|
|
|
|
|
|
- name: Generate E2E Test report.
|
2022-12-06 03:22:49 +00:00
|
|
|
if: success() || failure()
|
2022-10-21 16:07:53 +00:00
|
|
|
working-directory: plugins/woocommerce
|
2022-10-24 23:53:46 +00:00
|
|
|
run: pnpm exec allure generate --clean ${{ env.ALLURE_RESULTS_DIR }} --output ${{ env.ALLURE_REPORT_DIR }}
|
2022-10-21 16:07:53 +00:00
|
|
|
|
|
|
|
- name: Archive E2E test report
|
2022-12-06 03:22:49 +00:00
|
|
|
if: success() || failure()
|
2022-10-21 16:07:53 +00:00
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
2022-12-06 03:22:49 +00:00
|
|
|
name: Smoke tests on trunk with ${{ matrix.plugin }} plugin installed (run ${{ github.run_number }})
|
2022-10-21 16:07:53 +00:00
|
|
|
path: |
|
2022-10-24 23:53:46 +00:00
|
|
|
${{ env.ALLURE_RESULTS_DIR }}
|
|
|
|
${{ env.ALLURE_REPORT_DIR }}
|
2022-10-21 16:07:53 +00:00
|
|
|
if-no-files-found: ignore
|
|
|
|
retention-days: 5
|
|
|
|
|
|
|
|
trunk-results:
|
2022-12-06 03:22:49 +00:00
|
|
|
name: Publish report on smoke tests on nightly build
|
|
|
|
if: |
|
|
|
|
( success() || failure() ) &&
|
2022-10-21 16:07:53 +00:00
|
|
|
! github.event.pull_request.head.repo.fork
|
|
|
|
runs-on: ubuntu-20.04
|
2023-01-02 17:28:11 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
2023-01-31 16:29:15 +00:00
|
|
|
needs: [e2e-tests, test-plugins, k6-tests]
|
2022-10-21 16:07:53 +00:00
|
|
|
steps:
|
|
|
|
- name: Create dirs
|
2022-04-08 00:19:25 +00:00
|
|
|
run: |
|
2022-10-21 16:07:53 +00:00
|
|
|
mkdir -p repo
|
2022-12-06 03:22:49 +00:00
|
|
|
mkdir -p artifacts/api
|
2022-10-21 16:07:53 +00:00
|
|
|
mkdir -p artifacts/e2e
|
|
|
|
mkdir -p output
|
2022-05-16 09:59:40 +00:00
|
|
|
|
2022-10-21 16:07:53 +00:00
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
path: repo
|
|
|
|
ref: ${{ env.BRANCH_NAME }}
|
|
|
|
|
|
|
|
- name: Download API test report artifact
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: ${{ env.API_ARTIFACT }}
|
|
|
|
path: artifacts/api
|
|
|
|
|
|
|
|
- name: Download E2E test report artifact
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: ${{ env.E2E_ARTIFACT }}
|
|
|
|
path: artifacts/e2e
|
|
|
|
|
|
|
|
- name: Post test summary
|
|
|
|
uses: actions/github-script@v6
|
|
|
|
env:
|
|
|
|
API_SUMMARY_PATH: ${{ github.workspace }}/artifacts/api/allure-report/widgets/summary.json
|
|
|
|
E2E_PW_SUMMARY_PATH: ${{ github.workspace }}/artifacts/e2e/allure-report/widgets/summary.json
|
|
|
|
with:
|
|
|
|
result-encoding: string
|
|
|
|
script: |
|
|
|
|
const script = require( './repo/.github/workflows/scripts/prepare-test-summary-daily.js' )
|
|
|
|
return await script( { core } )
|
|
|
|
|
|
|
|
- name: Publish report
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.REPORTS_TOKEN }}
|
|
|
|
RUN_ID: ${{ github.run_id }}
|
|
|
|
run: |
|
|
|
|
gh workflow run publish-test-reports-daily.yml \
|
|
|
|
-f run_id=$RUN_ID \
|
|
|
|
-f api_artifact="$API_ARTIFACT" \
|
|
|
|
-f e2e_artifact="$E2E_ARTIFACT" \
|
|
|
|
-f s3_root=public \
|
|
|
|
--repo woocommerce/woocommerce-test-reports
|
|
|
|
|
|
|
|
plugins-results:
|
2022-12-06 03:22:49 +00:00
|
|
|
name: Publish report on Smoke tests on trunk with plugins
|
2022-10-21 16:07:53 +00:00
|
|
|
if: |
|
2022-12-06 03:22:49 +00:00
|
|
|
( success() || failure() ) &&
|
2022-10-21 16:07:53 +00:00
|
|
|
! github.event.pull_request.head.repo.fork
|
2022-05-31 18:57:04 +00:00
|
|
|
runs-on: ubuntu-20.04
|
2023-01-31 16:29:15 +00:00
|
|
|
needs: [e2e-tests, test-plugins, k6-tests]
|
2022-05-16 09:59:40 +00:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.REPORTS_TOKEN }}
|
|
|
|
RUN_ID: ${{ github.run_id }}
|
2022-12-06 03:22:49 +00:00
|
|
|
ARTIFACT: Smoke tests on trunk with ${{ matrix.plugin }} plugin installed (run ${{ github.run_number }})
|
2022-10-21 16:07:53 +00:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- 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: 'WordPress SEO' # Yoast SEO in the UI, but the slug is wordpress-seo
|
|
|
|
repo: 'Yoast/wordpress-seo'
|
|
|
|
- plugin: 'Contact Form 7'
|
|
|
|
repo: 'takayukister/contact-form-7'
|
2022-05-16 09:59:40 +00:00
|
|
|
steps:
|
2022-10-21 16:07:53 +00:00
|
|
|
- name: Download test report artifact
|
|
|
|
uses: actions/download-artifact@v3
|
|
|
|
with:
|
|
|
|
name: ${{ env.ARTIFACT }}
|
|
|
|
|
|
|
|
# TODO: Add step to post job summary
|
|
|
|
|
|
|
|
- name: Get slug
|
|
|
|
id: get-slug
|
|
|
|
uses: actions/github-script@v6
|
|
|
|
with:
|
|
|
|
result-encoding: string
|
|
|
|
script: return "${{ matrix.repo }}".split( '/' ).pop()
|
|
|
|
|
|
|
|
- name: Publish reports
|
2022-05-16 09:59:40 +00:00
|
|
|
run: |
|
2022-10-21 16:07:53 +00:00
|
|
|
gh workflow run publish-test-reports-daily-plugins.yml \
|
2022-05-16 09:59:40 +00:00
|
|
|
-f run_id=$RUN_ID \
|
2022-10-21 16:07:53 +00:00
|
|
|
-f artifact="${{ env.ARTIFACT }}" \
|
|
|
|
-f plugin="${{ matrix.plugin }}" \
|
|
|
|
-f slug="${{ steps.get-slug.outputs.result }}" \
|
|
|
|
-f s3_root=public \
|
2022-05-16 09:59:40 +00:00
|
|
|
--repo woocommerce/woocommerce-test-reports
|