-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c2ad1e8
commit 7d24d5a
Showing
2 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,38 @@ | ||
# action-collect-test-data | ||
action-collect-test-data | ||
========================= | ||
|
||
This action collects test output data and metadata from the GitHub Actions | ||
environment and uploads it to a Google Cloud Storage bucket. | ||
|
||
### Inputs | ||
|
||
- `path` (required): Path to the test output file. | ||
- `gcs_path` (required): Path to the GCS bucket where the test data will be uploaded. | ||
- `gcp_project_id` (required): GCP project ID. | ||
- `workload_identity_provider` (required): Workload Identity Provider. | ||
- `service_account_email` (required): Service Account Email. | ||
|
||
### Outputs | ||
|
||
- `uploaded`: The list of files uploaded to GCS. | ||
|
||
### Usage | ||
|
||
```yaml | ||
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: getsentry/action-collect-test-data@v0.1.0 | ||
with: | ||
path: <path to test output file> | ||
gcs_path: <path to GCS bucket> # Can include an optional prefix | ||
gcp_project_id: <GCP project ID> | ||
workload_identity_provider: <Workload Identity Provider> | ||
service_account_email: <Service Account Email> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters