open-vault/.github/workflows/test-run-acc-tests-for-path.yml
Ryan Cragun 1e752e0cba
ci: request vpc quota increase (#20360)
* Fix regions on two service quotas
* Request an increase in VPCs per region
* Pin github actions workflows

Signed-off-by: Ryan Cragun <me@ryan.ec>
2023-05-22 11:18:06 -06:00

34 lines
1.1 KiB
YAML

name: test-run-go-tests-for-path
on:
workflow_call:
inputs:
name:
description: 'The name to use that will appear in the output log file artifact'
required: true
type: string
path:
description: 'The path to the test without the precedeing "./" or following "/..." e.g. go test -v ./$path/...'
required: true
type: string
# We will need to add the capacity for receiving passed secrets once we get to the tests that require API credentials
env:
VAULT_ACC: 1
jobs:
go-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- name: Set Up Go
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
with:
go-version-file: ./.go-version
- run: go test -v ./${{ inputs.path }}/... 2>&1 | tee ${{ inputs.name }}.txt
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
with:
name: ${{ inputs.name }}-output
path: ${{ inputs.name }}.txt
retention-days: 2