-
Notifications
You must be signed in to change notification settings - Fork 1
Add daily execution of all tests #95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| 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=./... ./... |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
| 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 }} |
There was a problem hiding this comment.
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.
No description provided.