Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 1.7 KB

File metadata and controls

43 lines (34 loc) · 1.7 KB

send-ci-result-to-bigquery-action ts

This is an action to send test results of JUnit XML to Google Cloud BigQuery.

Getting Started

Status: still in beta

jobs:
  rspec:
    steps:
      - uses: actions/checkout@v3
      # Generate a test result in JUnit XML.
      # For example,
      - run: bundle exec rspec --format RspecJunitFormatter --out report/rspec.xml
      - uses: google-github-actions/auth@v1
        with:
          workload_identity_provider: 'projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider'
          service_account: '[email protected]'
      - uses: quipper/send-ci-result-to-bigquery-action@v0
        with:
          test-result-xml-glob: report/rspec.xml
          bigquery-dataset-name: ci_result
          bigquery-ci-result-table-name: ci_result
          bigquery-ci-context-table-name: ci_context
          github-matrix-context-json: ${{ toJson(matrix) }} # only if using matrix

Specification

Inputs

Name Default Description
test-result-xml-glob (required) Glob pattern of test results
bigquery-dataset-name (required) Dataset name
bigquery-ci-result-table-name (required) Table name of CI result
bigquery-ci-context-table-name (required) Table name of CI context

Outputs

None.