From 0d829e4bcdcdb46c27b08cc65f8f9709a751b254 Mon Sep 17 00:00:00 2001 From: James Blair Date: Wed, 2 Aug 2023 14:43:40 +1200 Subject: [PATCH] Update workflows to use makefile recipes for unit, integration & e2e-release. Signed-off-by: James Blair --- .github/workflows/e2e.yaml | 4 ++-- .github/workflows/tests.yaml | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 1def6fd7e..8792ed4de 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -25,10 +25,10 @@ jobs: echo "${TARGET}" case "${TARGET}" in linux-amd64-e2e) - PASSES='build release e2e' CPU='4' EXPECT_DEBUG='true' COVER='false' RACE='true' ./test.sh + CPU='4' EXPECT_DEBUG='true' COVER='false' RACE='true' make test-e2e-release ;; linux-386-e2e) - GOARCH=386 PASSES='build e2e' CPU='4' EXPECT_DEBUG='true' COVER='false' RACE='true' ./test.sh + GOARCH=386 CPU='4' EXPECT_DEBUG='true' COVER='false' RACE='true' make test-e2e ;; *) echo "Failed to find target" diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 5cf2c259f..5145d2c8d 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -33,16 +33,16 @@ jobs: GOARCH=amd64 PASSES='fmt bom dep' ./test.sh ;; linux-amd64-integration-1-cpu) - GOARCH=amd64 CPU=1 PASSES='integration' RACE='false' ./test.sh + GOARCH=amd64 CPU=1 RACE='false' make test-integration ;; linux-amd64-integration-2-cpu) - GOARCH=amd64 CPU=2 PASSES='integration' RACE='false' ./test.sh + GOARCH=amd64 CPU=2 RACE='false' make test-integration ;; linux-amd64-integration-4-cpu) - GOARCH=amd64 CPU=4 PASSES='integration' RACE='false' ./test.sh + GOARCH=amd64 CPU=4 RACE='false' make test-integration ;; linux-amd64-unit-4-cpu-race) - GOARCH=amd64 PASSES='unit' RACE='true' CPU='4' ./test.sh -p=2 + GOARCH=amd64 RACE='true' CPU='4' GO_TEST_FLAGS='-p=2' make test-unit ;; all-build) GOARCH=amd64 PASSES='build' ./test.sh @@ -56,7 +56,7 @@ jobs: GO_BUILD_FLAGS='-v -mod=readonly' GOARCH=s390x ./build.sh ;; linux-386-unit-1-cpu) - GOARCH=386 PASSES='unit' RACE='false' CPU='1' ./test -p=4 + GOARCH=386 RACE='false' CPU='1' GO_TEST_FLAGS='-p=4' make test-unit ;; *) echo "Failed to find target"