Skip to content

Commit

Permalink
Beginning to update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
IanWoodard committed Apr 2, 2024
1 parent c2ad1e8 commit 7d24d5a
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 3 deletions.
39 changes: 38 additions & 1 deletion README.md
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>
```
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: 'Collect Test Data'
description: 'Collect test data and metadata and upload them to GCS.'
inputs:
path:
description: 'The path to the JUnit XML file to be processed.'
description: 'The path to the test output (such as a JUnit XML file).'
required: true
gcs_path:
description: 'The GCS bucket and optional prefix to upload the JUnit XML and metadata files to.'
description: 'The GCS bucket and optional prefix to upload the test data and metadata to.'
required: true
gcp_project_id:
description: 'The GCP project ID to use for authentication.'
Expand Down

0 comments on commit 7d24d5a

Please sign in to comment.