From 16978c3a43f1cd720f5c371c7721b999184b8881 Mon Sep 17 00:00:00 2001 From: HiteshRepo Date: Sun, 28 Jan 2024 20:31:05 +0530 Subject: [PATCH] test all suites individually --- .github/workflows/ci.yml | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0ac2bbc3c..56fb1a72e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -309,7 +309,43 @@ jobs: -failfast \ -p 1 \ -timeout 20m \ - ./internal/m365/collection/site \ + -run '^SharePointCollectionUnitSuite/' ./internal/m365/collection/site \ + 2>&1 | tee -a ./testlog/gotest-unit.log + + # Run the second test + go test \ + -tags testing \ + -failfast \ + -p 1 \ + -timeout 20m \ + -run '^TestExportUnitSuite/' ./internal/m365/collection/site \ + 2>&1 | tee -a ./testlog/gotest-unit.log + + # Run the third test + go test \ + -tags testing \ + -failfast \ + -p 1 \ + -timeout 20m \ + -run '^TestPagesUnitSuite/' ./internal/m365/collection/site \ + 2>&1 | tee -a ./testlog/gotest-unit.log + + # Run the fourth test + go test \ + -tags testing \ + -failfast \ + -p 1 \ + -timeout 20m \ + -run '^TestSharePointRestoreUnitSuite/' ./internal/m365/collection/site \ + 2>&1 | tee -a ./testlog/gotest-unit.log + + # Run the fifth test + go test \ + -tags testing \ + -failfast \ + -p 1 \ + -timeout 20m \ + -run '^TestSharePointBackupUnitSuite/' ./internal/m365/collection/site \ 2>&1 | tee -a ./testlog/gotest-unit.log # - name: all tests