mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-03 20:40:45 -05:00
None of these appear to have any changes in behavior we ought to be concerned with. - actions/cache: https://github.com/actions/cache/releases/tag/v5.0.1 Upgrade to Node 24 - actions/upload-artifact: https://github.com/actions/upload-artifact/releases/tag/v6.0.0 Upgrade to Node 24 - actions/checkout: https://github.com/actions/checkout/releases/tag/v6.0.1 Bug fix for persisted-credentials changes in 6 - actions/setup-node: https://github.com/actions/setup-node/releases/tag/v6.1.0 Updates internal actions and removes always-auth config - actions/download-artifact: https://github.com/actions/download-artifact/releases/tag/v7.0.0 Upgrade to Node 24 Signed-off-by: Ryan Cragun <me@ryan.ec> Co-authored-by: Ryan Cragun <me@ryan.ec>
32 lines
1.2 KiB
YAML
32 lines
1.2 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: ${{ github.repository == 'hashicorp/vault' && 'ubuntu-latest' || fromJSON('["self-hosted","ubuntu-latest-x64"]') }}
|
|
steps:
|
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
- uses: ./.github/actions/set-up-go
|
|
with:
|
|
github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
|
- run: go test -v ./${{ inputs.path }}/... 2>&1 | tee ${{ inputs.name }}.txt
|
|
- uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
|
|
with:
|
|
name: ${{ inputs.name }}-output
|
|
path: ${{ inputs.name }}.txt
|
|
retention-days: 2
|