From 97860ba3368581541765544629030dd61cbac4f8 Mon Sep 17 00:00:00 2001 From: HiteshRepo Date: Sun, 28 Jan 2024 18:21:55 +0530 Subject: [PATCH] tests only TestSharePointSuite/TestCollectLists --- .github/workflows/ci.yml | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a5a02ded3..34418c96c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -299,12 +299,7 @@ jobs: - run: mkdir testlog - - name: all 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 @@ -314,9 +309,27 @@ jobs: -failfast \ -p 1 \ -timeout 20m \ - ./... \ + -run '^TestSharePointSuite/TestCollectLists$' ./internal/m365/collection/site \ 2>&1 | tee -a ./testlog/gotest-unit.log + # - name: all 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 + + # # Run the first test + # go test \ + # -tags testing \ + # -failfast \ + # -p 1 \ + # -timeout 20m \ + # ./... \ + # 2>&1 | tee -a ./testlog/gotest-unit.log + # run the tests # - name: Unit Tests # env: