Skip to content

Commit

Permalink
lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
hghaf099 committed Aug 17, 2023
1 parent 8089ff7 commit a9954f4
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/test-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a9954f4

Please sign in to comment.