run only one test for trusted tests

This commit is contained in:
HiteshRepo 2024-01-29 15:18:21 +05:30
parent ffcd42badc
commit 6c7c57e92a

View File

@ -187,9 +187,30 @@ jobs:
-failfast \
-p 1 \
-timeout 20m \
./... \
-run ./internal/operations/test/m365/exchange \
2>&1 | tee /tmp/corso-trusted-testlog/gotest-ci.log
# # run the tests
# - name: Integration Tests
# env:
# AZURE_CLIENT_ID: ${{ secrets[env.AZURE_CLIENT_ID_NAME] }}
# AZURE_CLIENT_SECRET: ${{ secrets[env.AZURE_CLIENT_SECRET_NAME] }}
# AZURE_TENANT_ID: ${{ secrets.TENANT_ID }}
# CORSO_CI_TESTS: true
# CORSO_M365_TEST_USER_ID: ${{ vars.CORSO_M365_TEST_USER_ID }}
# CORSO_SECONDARY_M365_TEST_USER_ID: ${{ vars.CORSO_SECONDARY_M365_TEST_USER_ID }}
# CORSO_PASSPHRASE: ${{ secrets.INTEGRATION_TEST_CORSO_PASSPHRASE }}
# S3_BUCKET: ${{ secrets.CI_TESTS_S3_BUCKET }}
# run: |
# set -euo pipefail
# go test \
# -tags testing \
# -failfast \
# -p 1 \
# -timeout 20m \
# ./... \
# 2>&1 | tee /tmp/corso-trusted-testlog/gotest-ci.log
# Upload the original go test output as an artifact for later review.
- name: Upload test log
if: always()