Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@josesahad
Copy link

No description provided.

run: |
# Run all tests with race detection and coverage
# Integration tests will skip automatically if secrets are not set
go test -race -coverprofile=coverage.out -coverpkg=./... ./...
Copy link
Contributor

@cevian cevian Nov 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But the secrets will be set from the env: section above. So this will run all integration tests. I don't think you need any of the code below

This is the skip logic btw

	publicKey := os.Getenv("TIGER_PUBLIC_KEY_INTEGRATION")
	secretKey := os.Getenv("TIGER_SECRET_KEY_INTEGRATION")
	projectID := os.Getenv("TIGER_PROJECT_ID_INTEGRATION")


	if publicKey == "" || secretKey == "" || projectID == "" {
		t.Skip("Skipping service not found test: TIGER_PUBLIC_KEY_INTEGRATION, TIGER_SECRET_KEY_INTEGRATION, and TIGER_PROJECT_ID_INTEGRATION must be set")
	}```

so just setting the env is enough. We don't need the .env file or script

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I went ahead and removed the unnecessary code: d1f68aa

@nathanjcochran nathanjcochran requested a review from cevian November 3, 2025 22:19
Comment on lines +57 to +59
TIGER_PUBLIC_KEY_INTEGRATION: ${{ secrets.TIGER_PUBLIC_KEY_INTEGRATION }}
TIGER_SECRET_KEY_INTEGRATION: ${{ secrets.TIGER_SECRET_KEY_INTEGRATION }}
TIGER_PROJECT_ID_INTEGRATION: ${{ secrets.TIGER_PROJECT_ID_INTEGRATION }}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have these secrets actually been created yet? I'm not seeing them listed in the repository secrets. Should probably do that before merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants