ci(contracts): only run codecov if contracts package is modified#1209
Merged
ci(contracts): only run codecov if contracts package is modified#1209
Conversation
|
03e32b6 to
ed4b8bb
Compare
ed4b8bb to
34d9fc9
Compare
Contributor
Author
snario
approved these changes
Jul 2, 2021
34d9fc9 to
c4c7b2a
Compare
smartcontracts
approved these changes
Jul 6, 2021
2025e81 to
2b8f3ee
Compare
In order to skip running the CodeCov job when it isn't relevant, a new job was added to the ts-packges workflow. For a PR, this job identifies all the files modified between the base branch and the tip of the PR branch, and writes to a variable which can be used to decide if subsequent jobs should run. Github Actions provides an easy method for achieving this at the level of a workflow, but not for specific jobs within a workflow.
2b8f3ee to
1bba5f0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

In order to skip running the CodeCov job when it isn't relevant, a new job was added to the ts-packges workflow. For a PR, this job identifies all the files modified between the base branch and the tip of the PR branch, and writes to a variable which can be used to decide if subsequent jobs should run.
Github Actions provides an easy method for achieving this at the level of a workflow, but not for specific jobs within a workflow.
This work is based on GitHub community post here, and at the time of writing, I have no idea if it will work.
I have not included a changeset, as no package files were changed.