Skip to content
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

fix: run tests for module generator in all platforms #1496

Merged
merged 2 commits into from
Aug 11, 2023

Conversation

mdelapenya
Copy link
Member

What does this PR do?

This PR adds a new input parameter to the reusable workflow, in order to "run the tests" step. Is true, it will execute the step.

With this approach the caller decides whether the tests are run or not passing true/false in the new run-tests parameter. In general, they will pass a true value, but for the core library, where we want to run the tests only for Linux, we must check that the platform is ubuntu-latest, only.

Why is it important?

We noticed the value was hardcoded to run the tests only on Ubuntu, directly into the reusable workflow, but there are callers that need to run the tests on Mac and Windows too. For that reason we needed a way to tell the reusable workflow to skip the tests or to run them.

Related issues

@mdelapenya mdelapenya requested a review from a team as a code owner August 11, 2023 06:26
@mdelapenya mdelapenya added the chore Changes that do not impact the existing functionality label Aug 11, 2023
@mdelapenya mdelapenya self-assigned this Aug 11, 2023
@netlify
Copy link

netlify bot commented Aug 11, 2023

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit f4abb51
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/64d5d7fee84b5c0008ee925f
😎 Deploy Preview https://deploy-preview-1496--testcontainers-go.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@sonarcloud
Copy link

sonarcloud bot commented Aug 11, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@mdelapenya
Copy link
Member Author

The tests passed on Windows, so I think this is good to go! Merging

@mdelapenya mdelapenya merged commit f9f4fe5 into testcontainers:main Aug 11, 2023
17 checks passed
@mdelapenya mdelapenya deleted the windows-workers-run-tests branch August 30, 2023 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Changes that do not impact the existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant