revert to single test

This commit is contained in:
HiteshRepo 2024-01-28 13:01:39 +05:30
parent fe95d210dc
commit c5e4d99d70

View File

@ -299,24 +299,29 @@ jobs:
- run: mkdir testlog - run: mkdir testlog
# run the tests - name: one test
- 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: | run: |
set -euo pipefail go test -run '^TestPathUnitSuite/Test_Stuff$' ./pkg/path \
go test \
-tags testing \
-v \
-failfast \
-p 1 \
-timeout 20m \
./... \
2>&1 | tee ./testlog/gotest-unit.log 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. # Upload the original go test output as an artifact for later review.
- name: Upload test log - name: Upload test log
if: always() if: always()