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

Don't create main branch when on main and don't run some tests on main #436

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

abelsiqueira
Copy link
Collaborator

The ReusableTest workflow creates a main branch due a specific
test recently introduced. That specific runs the generation on main
and on HEAD.
Both activites make no sense if we are running on the main branch,
This creates a condition on the workflow to only run if the
branch is not main (a condition on PRs would also work, but we
leave the possibility of running tests on others branches with
this approach). Furthermore, this also adds a condition in the tests
such that only on main the tests are run.

Closes #435

The ReusableTest workflow creates a main branch due a specific test
recently introduced. That specific runs the generation on main and on
HEAD.
Both activites make no sense if we are running on the main branch.

This creates a condition on the workflow to only run if the branch is
not main (a condition on PRs would also work, but we leave the
possibility of running tests on others branches with this approach).
Furthermore, this also adds a condition in the tests such that only on
main the tests are run.

Closes #435
Copy link

codecov bot commented Sep 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (d9e9ade) to head (38f1f6f).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #436   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            4         4           
  Lines          104       104           
=========================================
  Hits           104       104           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@abelsiqueira abelsiqueira merged commit c89fb23 into main Sep 5, 2024
7 checks passed
@abelsiqueira abelsiqueira deleted the 435-fix-tests branch September 5, 2024 14:48
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.

[Bug] Tests are broken on main due to git command in workflow
1 participant