Skip to content

Commit

Permalink
fix: reference test go-test in reusable go apps wf
Browse files Browse the repository at this point in the history
for testing
  • Loading branch information
CallumNZ committed Oct 15, 2024
1 parent b207842 commit 75b2ac5
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/reusable-go-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ on:
type: string
description: |
extra args to pass `go test`
test-coverage-upload-role:
type: string
required: false
description: |
the AWS IAM role to use to upload test results to s3 bucket
test-coverage-upload-bucket:
type: string
required: false
description: |
the AWS S3 bucket name to upload test results to.
jobs:
go-build:
if: ${{ contains(fromJSON('["workflow_call", "workflow_dispatch", "push", "pull_request"]'), github.event_name) && startsWith(github.repository, 'GeoNet/') != false }}
Expand All @@ -40,10 +50,12 @@ jobs:
setup: ${{ inputs.buildSetup }}
go-test:
if: ${{ contains(fromJSON('["workflow_call", "workflow_dispatch", "push", "pull_request"]'), github.event_name) && startsWith(github.repository, 'GeoNet/') != false }}
uses: GeoNet/Actions/.github/workflows/reusable-go-test.yml@main
uses: GeoNet/Actions/.github/workflows/reusable-go-test.yml@caS3-gotest
with:
setup: ${{ inputs.testSetup || inputs.buildSetup }}
extraArgs: ${{ inputs.goTestExtraArgs }}
aws-role-arn-to-assume: ${{ inputs.test-coverage-upload-role }}
s3-bucket: ${{ inputs.test-coverage-upload-bucket }}
go-vet:
if: ${{ contains(fromJSON('["workflow_call", "workflow_dispatch", "push", "pull_request"]'), github.event_name) && startsWith(github.repository, 'GeoNet/') != false }}
uses: GeoNet/Actions/.github/workflows/reusable-go-vet.yml@main
Expand Down

0 comments on commit 75b2ac5

Please sign in to comment.