run test for only config pkg

This commit is contained in:
HiteshRepo 2024-01-29 17:18:43 +05:30
parent 8956d2642c
commit 46770fb12b

View File

@ -266,8 +266,7 @@ jobs:
role-session-name: integration-testing
aws-region: us-east-1
# run the tests
- name: Retention Tests
- name: One Test
env:
AZURE_CLIENT_ID: ${{ secrets[env.AZURE_CLIENT_ID_NAME] }}
AZURE_CLIENT_SECRET: ${{ secrets[env.AZURE_CLIENT_SECRET_NAME] }}
@ -284,9 +283,30 @@ jobs:
-failfast \
-p 1 \
-timeout 10m \
./... \
-run github.com/alcionai/corso/src/pkg/config \
2>&1 | tee /tmp/corso-retention-testlog/gotest-ci.log
# run the tests
# - name: Retention 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_RETENTION_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_RETENTION_TESTS_S3_BUCKET }}
# run: |
# set -euo pipefail
# go test \
# -tags testing \
# -failfast \
# -p 1 \
# -timeout 10m \
# ./... \
# 2>&1 | tee /tmp/corso-retention-testlog/gotest-ci.log
# Upload the original go test output as an artifact for later review.
- name: Upload test log
if: always()