From 1d1419a2752f7186489625dbf8ff51a77f9dcf1a Mon Sep 17 00:00:00 2001 From: paketo-bot Date: Wed, 4 Sep 2024 13:36:33 +0000 Subject: [PATCH] Updating github-config --- .github/workflows/test-pull-request.yml | 2 ++ .github/workflows/update-dependencies-from-metadata.yml | 6 +++--- scripts/unit.sh | 4 +++- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-pull-request.yml b/.github/workflows/test-pull-request.yml index 6574ff7..f1b3dc0 100644 --- a/.github/workflows/test-pull-request.yml +++ b/.github/workflows/test-pull-request.yml @@ -26,6 +26,8 @@ jobs: uses: actions/checkout@v3 - name: Run Unit Tests + env: + GO_TEST_PARAMS: -count=5 run: ./scripts/unit.sh - name: Get builders from integration.json diff --git a/.github/workflows/update-dependencies-from-metadata.yml b/.github/workflows/update-dependencies-from-metadata.yml index 7154fe6..fc7008a 100644 --- a/.github/workflows/update-dependencies-from-metadata.yml +++ b/.github/workflows/update-dependencies-from-metadata.yml @@ -211,7 +211,7 @@ jobs: uses: actions/checkout@v3 - name: Download artifact files - uses: actions/download-artifact@v4.1.7 + uses: actions/download-artifact@v3 with: name: '${{ needs.retrieve.outputs.id }}-${{ matrix.includes.version }}-${{ matrix.includes.target }}' @@ -241,7 +241,7 @@ jobs: run: echo "checksum=$(cat ${{ steps.get-file-names.outputs.checksum-file }})" >> "$GITHUB_OUTPUT" - name: Download metadata.json - uses: actions/download-artifact@v4.1.7 + uses: actions/download-artifact@v3 with: name: metadata.json @@ -290,7 +290,7 @@ jobs: echo "outputdir=$(mktemp -d)" >> "$GITHUB_OUTPUT" - name: Download metadata.json - uses: actions/download-artifact@v4.1.7 + uses: actions/download-artifact@v3 with: name: metadata.json path: "${{ steps.make-outputdir.outputs.outputdir }}" diff --git a/scripts/unit.sh b/scripts/unit.sh index 8e193c7..dd130bf 100755 --- a/scripts/unit.sh +++ b/scripts/unit.sh @@ -6,6 +6,8 @@ set -o pipefail readonly PROGDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" readonly BUILDPACKDIR="$(cd "${PROGDIR}/.." && pwd)" +GO_TEST_PARAMS="${GO_TEST_PARAMS:-}" + # shellcheck source=SCRIPTDIR/.util/tools.sh source "${PROGDIR}/.util/tools.sh" @@ -50,7 +52,7 @@ function unit::run() { testout=$(mktemp) pushd "${BUILDPACKDIR}" > /dev/null - if go test ./... -v -run Unit | tee "${testout}"; then + if go test ./... -v ${GO_TEST_PARAMS} -run Unit | tee "${testout}"; then util::tools::tests::checkfocus "${testout}" util::print::success "** GO Test Succeeded **" else