Skip to content

Commit

Permalink
fix test failure on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
parvit committed Sep 17, 2024
1 parent edb4c0e commit d78d248
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ jobs:
mkdir -p unit/
mkdir -p cover/
mkdir -p report/
go install github.com/jstemmer/go-junit-report@v1.0.0
go install github.com/jstemmer/go-junit-report@v2.1.0
go install github.com/axw/gocov/[email protected]
go install github.com/matm/gocov-html/cmd/[email protected]
go install github.com/AlekSi/[email protected]
Expand All @@ -141,8 +141,8 @@ jobs:
do
pushd $i
export WORKSPACE="${{ github.workspace }}"
go test -v -gcflags=-l -cover -c -o qpep.$(basename $PWD).test &> /dev/null || true
./qpep.$(basename $PWD).test -test.v -test.timeout 5m -test.coverprofile=$WORKSPACE/cover/$(basename $PWD).out &> unit_tests.out || true
go test -v -gcflags=-l -cover -c -o qpep.$(basename $PWD).test &> unit_tests.out || true
./qpep.$(basename $PWD).test -test.v -test.timeout 5m -test.coverprofile=$WORKSPACE/cover/$(basename $PWD).out &>> unit_tests.out || true
grep -E "PASS|FAIL|SKIP" unit_tests.out || true
cat unit_tests.out | go-junit-report > $WORKSPACE/unit/$(basename $PWD).xml
popd
Expand Down Expand Up @@ -190,7 +190,7 @@ jobs:
pushd $i
grep -E "FAIL:" unit_tests.out
if [ $? -eq 0 ]; then
exit /b 1
exit 1
fi
popd
done
Expand Down Expand Up @@ -233,7 +233,7 @@ jobs:
mkdir -p cover
mkdir -p report
mkdir -p unit
go install github.com/jstemmer/go-junit-report@v1.0.0
go install github.com/jstemmer/go-junit-report@v2.1.0
go install github.com/axw/gocov/[email protected]
go install github.com/matm/gocov-html/cmd/[email protected]
go install github.com/AlekSi/[email protected]
Expand Down Expand Up @@ -316,7 +316,7 @@ jobs:
cat unit_tests.out
grep -E "FAIL:" unit_tests.out
if [ $? -eq 0 ]; then
exit /b 1
exit 1
fi
popd
done
Expand Down Expand Up @@ -419,7 +419,7 @@ jobs:
MKDIR unit
MKDIR cover
MKDIR report
go install github.com/jstemmer/go-junit-report@v1.0.0
go install github.com/jstemmer/go-junit-report@v2.1.0
go install github.com/axw/gocov/[email protected]
go install github.com/matm/gocov-html/cmd/[email protected]
go install github.com/AlekSi/[email protected]
Expand Down Expand Up @@ -485,7 +485,7 @@ jobs:
pushd $i
grep -E "FAIL:" unit_tests.out
if [ $? -eq 0 ]; then
exit /b 1
exit 1
fi
popd
done

0 comments on commit d78d248

Please sign in to comment.