Skip to content

feat: add build-allure-report composite action - #66

Merged
Ntnelbaba merged 4 commits into
mainfrom
feat/build-allure-report-composite-a83c
Nov 3, 2026
Merged

Ntnelbaba merged 4 commits into
mainfrom
feat/build-allure-report-composite-a83c

Conversation

@Ntnelbaba

@Ntnelbaba Ntnelbaba commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds actions/build-allure-report, a composite action that centralizes the shared Playwright Allure report pipeline used by Elementor Core and Elementor Pro: download merged result artifacts, optional preprocess/categories, npx allure-commandline generate, workflow artifact upload, and optional GCS publish with main-branch history restore.

Additive only — no changes to existing actions or workflows. Fork/untrusted-PR guards stay in Core’s caller (via gcs-upload: false); the action only runs GCP when gcs-upload is true.

Inputs

Input Required Default Description
results-pattern yes — Artifact glob for download-artifact
preprocess-command no '' Shell command after download
categories-file no '' Copied to allure-results/categories.json when set
gcs-upload no true Skip GCP when false
gcs-bucket no '' Bucket name without gs://
gcs-dest no '' GCS prefix; main restores main/history
gcp-project-number no '' GCP project number for OIDC
gcp-project-id no '' GCP project ID for the Actions SA
report-url-base no '' Public base URL for summary link
artifact-name no allure-report Workflow artifact name
allure-version no 2.41.0 allure-commandline version
fail-on-upload-error no false Fail job on GCS upload error

Outputs

  • report-dir — generated HTML directory (allure-report)
  • uploaded — true when GCS upload succeeded

Callers check out the repo first and set contents: read, id-token: write, and actions: read.

Open in Web Open in Cursor 

✨ PR Description

1. Problem & Context

Introduces a reusable composite action to standardize Allure report generation and GCS publishing across Playwright CI workflows.

2. What Changed (Where)

  • actions/build-allure-report/action.yml: New composite action definition.
  • actions/build-allure-report/README.md: Documentation and usage examples.

3. How It Works

Downloads results based on a glob pattern, runs an optional preprocess command, generates the report via npx allure-commandline, and optionally syncs history and uploads the final HTML to GCS.

Generated by LinearB AI and added by gitStream.
AI-generated content may contain inaccuracies. Please verify before using.
💡 Tip: You can customize your AI Description using Guidelines Learn how

cursoragent and others added 2 commits November 2, 2026 11:42
Co-authored-by: Netanel Baba <Ntnelbaba@users.noreply.github.com>
Co-authored-by: Netanel Baba <Ntnelbaba@users.noreply.github.com>

- name: GCP Authentication
if: inputs.gcs-upload == 'true'
uses: google-github-actions/auth@v2

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Follows the repo convention, nothing here is SHA-pinned. Not changing it in this PR.


- name: Install gcloud CLI
if: inputs.gcs-upload == 'true' && inputs.gcs-dest == 'main'
uses: google-github-actions/setup-gcloud@v3

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Follows the repo convention, nothing here is SHA-pinned. Not changing it in this PR.

- name: Upload Allure report to GCP bucket
id: gcs_upload
if: inputs.gcs-upload == 'true' && hashFiles('allure-report/**') != ''
uses: google-github-actions/upload-cloud-storage@v3

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Follows the repo convention, nothing here is SHA-pinned. Not changing it in this PR.

Comment thread actions/build-allure-report/action.yml Resolved
Co-authored-by: Netanel Baba <Ntnelbaba@users.noreply.github.com>
@Ntnelbaba
Ntnelbaba merged commit bfa24ea into main Nov 3, 2026
19 checks passed
@Ntnelbaba
Ntnelbaba deleted the feat/build-allure-report-composite-a83c branch November 3, 2026 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants