From c5e4d99d701150e854c9a04b5ace5ff3806c8bec Mon Sep 17 00:00:00 2001 From: HiteshRepo Date: Sun, 28 Jan 2024 13:01:39 +0530 Subject: [PATCH] revert to single test --- .github/workflows/ci.yml | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 47f3fd478..8a037ae90 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -299,24 +299,29 @@ jobs: - run: mkdir testlog - # run the tests - - name: Unit Tests - env: - # Set these to a bad value so we don't accidentally fall back to - # something elsewhere. - CORSO_M365_TEST_USER_ID: "foo" - CORSO_SECONDARY_M365_TEST_USER_ID: "foo" + - name: one test run: | - set -euo pipefail - go test \ - -tags testing \ - -v \ - -failfast \ - -p 1 \ - -timeout 20m \ - ./... \ + go test -run '^TestPathUnitSuite/Test_Stuff$' ./pkg/path \ 2>&1 | tee ./testlog/gotest-unit.log + # run the tests + # - name: Unit Tests + # env: + # # Set these to a bad value so we don't accidentally fall back to + # # something elsewhere. + # CORSO_M365_TEST_USER_ID: "foo" + # CORSO_SECONDARY_M365_TEST_USER_ID: "foo" + # run: | + # set -euo pipefail + # go test \ + # -tags testing \ + # -v \ + # -failfast \ + # -p 1 \ + # -timeout 20m \ + # ./... \ + # 2>&1 | tee ./testlog/gotest-unit.log + # Upload the original go test output as an artifact for later review. - name: Upload test log if: always()