Skip to content

Commit

Permalink
Merge pull request #9 from buildpulse/coverage
Browse files Browse the repository at this point in the history
Added support for coverage files and tags
  • Loading branch information
siddhantdange authored Jul 31, 2023
2 parents d0d30f5 + 3d5c518 commit aa3c2bb
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,13 @@ If your workflow checks out a _different_ commit than the commit that triggered

_Optional_ The path to the local git clone of the repository (default: ".").

### `coverage-files`

_Optional_ The paths to the coverage file(s) for the test results (space-separated).

### `tags`

_Optional_ Tags to apply to this build (space-separated).


[buildpulse.io]: https://buildpulse.io
12 changes: 12 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,16 @@ inputs:
you'll want to set this input to the pull request HEAD commit SHA.
default: "${{ github.sha }}"
required: false
coverage-files:
description: |
Paths to coverage files (space-separated).
default: ""
required: false
tags:
description: |
Tags to apply to this build (space-separated).
default: ""
required: false
runs:
using: composite
steps:
Expand All @@ -81,3 +91,5 @@ runs:
INPUT_CLI_HOST: ${{ inputs.cli-host }} # Translate kebab-case input to snake_case env var
INPUT_REPOSITORY_PATH: ${{ inputs.repository-path }} # Translate kebab-case input to snake_case env var
INPUT_COMMIT: ${{ inputs.commit }}
INPUT_COVERAGE_FILES: ${{ inputs.coverage-files }}
INPUT_TAGS: ${{ inputs.tags }}
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@ set -x
BUILDPULSE_ACCESS_KEY_ID="${INPUT_KEY}" \
BUILDPULSE_SECRET_ACCESS_KEY="${INPUT_SECRET}" \
GITHUB_SHA="${COMMIT_SHA}" \
./buildpulse-test-reporter submit $REPORT_PATH --account-id $ACCOUNT_ID --repository-id $REPOSITORY_ID --repository-dir "${REPOSITORY_PATH}"
./buildpulse-test-reporter submit $REPORT_PATH --account-id $ACCOUNT_ID --repository-id $REPOSITORY_ID --repository-dir "${REPOSITORY_PATH}" --coverage-files "${INPUT_COVERAGE_FILES}" --tags "${INPUT_TAGS}"

0 comments on commit aa3c2bb

Please sign in to comment.