From dd20c96f041ba7bd2bb8767bb87d0fe7b49d5a04 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sat, 22 Apr 2023 09:01:55 +0200 Subject: [PATCH] Hotfix for broken tests --- .github/workflows/test.reusable.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.reusable.yml b/.github/workflows/test.reusable.yml index b02f9c2..f456a6a 100644 --- a/.github/workflows/test.reusable.yml +++ b/.github/workflows/test.reusable.yml @@ -43,13 +43,13 @@ jobs: - name: Run pre test hook run: | - if [ -f .github/.ci.conf ]; && . .github/.ci.conf - [ -n "${PRE_TEST_HOOK}" ] && ${PRE_TEST_HOOK} + if [ -f .github/.ci.conf ]; then . .github/.ci.conf fi + if [ -n "${PRE_TEST_HOOK}" ]; then ${PRE_TEST_HOOK} fi - name: Run test run: | TEST_BENCH_OPTION="-bench=." - [ -f .github/.ci.conf ] && . .github/.ci.conf + if [ -f .github/.ci.conf ]; then . .github/.ci.conf fi set -euo pipefail go-acc -o cover.out ./... -- \ @@ -59,8 +59,8 @@ jobs: - name: Run post test hook run: | - [ -f .github/.ci.conf ] && . .github/.ci.conf - [ -n "${POST_TEST_HOOK}" ] && ${POST_TEST_HOOK} + if [ -f .github/.ci.conf ]; then . .github/.ci.conf fi + if [ -n "${POST_TEST_HOOK}" ]; then ${POST_TEST_HOOK} fi - name: Upload test log uses: actions/upload-artifact@v3