From a9954f409b74e401b0d487c6255a8d22eae979d0 Mon Sep 17 00:00:00 2001 From: hamid ghaf Date: Thu, 17 Aug 2023 13:26:39 -0700 Subject: [PATCH] lint issues --- .github/workflows/test-go.yml | 36 +++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/test-go.yml b/.github/workflows/test-go.yml index 3053a3ac34ee..b067b2e43822 100644 --- a/.github/workflows/test-go.yml +++ b/.github/workflows/test-go.yml @@ -129,26 +129,26 @@ jobs: if: ${{ inputs.testonly }} env: GOPRIVATE: github.com/hashicorp/* - run: | - set -exo pipefail + run: | + set -exo pipefail - # testonly tagged tests need an additional tag - go list -tags=testonly ./... | grep "testonly" | gotestsum tool ci-matrix --debug \ - --partitions "${{ inputs.total-runners }}" \ - --timing-files 'test-results/go-test/*.json' > matrix.json + # testonly tagged tests need an additional tag + go list -tags=testonly ./... | grep "testonly" | gotestsum tool ci-matrix --debug \ + --partitions "${{ inputs.total-runners }}" \ + --timing-files 'test-results/go-test/*.json' > matrix.json - # hardcoding vault package index as there is only one test package tagged with testonly - # in the external tests. However, it would be also good to run the vault package with - # to validate the tag and also validate the vault package tests that are tagged with - # test only. There is only going to be two tests runners for testonly job. - jq --arg PKG "github.com/hashicorp/vault/vault" \ - '.include[1] = { - "id": 1, - "estimatedRuntime": "N/A", - "packages": $PKG, - "description": "partition 1 - vault test packages" - }' matrix.json > new-matrix.json - mv new-matrix.json matrix.json + # hardcoding vault package index as there is only one test package tagged with testonly + # in the external tests. However, it would be also good to run the vault package with + # to validate the tag and also validate the vault package tests that are tagged with + # test only. There is only going to be two tests runners for testonly job. + jq --arg PKG "github.com/hashicorp/vault/vault" \ + '.include[1] = { + "id": 1, + "estimatedRuntime": "N/A", + "packages": $PKG, + "description": "partition 1 - vault test packages" + }' matrix.json > new-matrix.json + mv new-matrix.json matrix.json - name: Capture list of binary tests if: inputs.binary-tests id: list-binary-tests