This action collects test output data and metadata from the GitHub Actions environment and uploads it to a Google Cloud Storage bucket.
path
(required): Path to the test output file.gcs_path
(required): The path to the GCS bucket where the test data and metadata will be uploaded. This can include an optional prefix. The format isbucket-name[/prefix]
. You don't need to include thegs://
prefix.gcp_project_id
(required): The ID of the GCP Project where the GCS bucket is located.workload_identity_provider
(required): The identifier of the Workload Identity Provider that will be used to authenticate the action to GCP.service_account_email
(required): The email address of the service account that will be used to authenticate the action to GCP.
uploaded
: A list of the files that were uploaded to the GCS bucket.
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run tests
run: echo "Run tests and generate an output file"
- name: Collect test data
if: '!cancelled()' # Always run this step, unless the workflow was cancelled
uses: khulnasoft-lab/[email protected]
with:
path: ./test-output.xml
gcs_path: my-gs-bucket/prefix/test-data
gcp_project_id: my-gcp-project
workload_identity_provider: projects/my-gcp-project/locations/global/workloadIdentityPools/my-pool/providers/my-provider
service_account_email: [email protected]