Skip to content

ci(contracts): only run codecov if contracts package is modified#1209

Merged
maurelian merged 1 commit intodevelopfrom
maurelian/skip-codecov
Jul 7, 2021
Merged

ci(contracts): only run codecov if contracts package is modified#1209
maurelian merged 1 commit intodevelopfrom
maurelian/skip-codecov

Conversation

@maurelian
Copy link
Copy Markdown
Contributor

@maurelian maurelian commented Jul 2, 2021

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.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Jul 2, 2021

⚠️ No Changeset found

Latest commit: 1bba5f0

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@maurelian maurelian force-pushed the maurelian/skip-codecov branch 5 times, most recently from 03e32b6 to ed4b8bb Compare July 2, 2021 20:50
@maurelian maurelian marked this pull request as draft July 2, 2021 20:50
@maurelian maurelian marked this pull request as ready for review July 2, 2021 20:50
@maurelian maurelian changed the title ci(contracts): only run codecov if contracts package is modified TEST PR: ci(contracts): only run codecov if contracts package is modified Jul 2, 2021
@maurelian maurelian force-pushed the maurelian/skip-codecov branch from ed4b8bb to 34d9fc9 Compare July 2, 2021 20:53
@maurelian
Copy link
Copy Markdown
Contributor Author

Success!

image

@maurelian maurelian changed the title TEST PR: ci(contracts): only run codecov if contracts package is modified ci(contracts): only run codecov if contracts package is modified Jul 2, 2021
@maurelian maurelian force-pushed the maurelian/skip-codecov branch from 34d9fc9 to c4c7b2a Compare July 6, 2021 15:26
@maurelian maurelian force-pushed the maurelian/skip-codecov branch 5 times, most recently from 2025e81 to 2b8f3ee Compare July 7, 2021 00:15
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.
@maurelian maurelian force-pushed the maurelian/skip-codecov branch from 2b8f3ee to 1bba5f0 Compare July 7, 2021 01:14
@maurelian maurelian merged commit bfa906b into develop Jul 7, 2021
@maurelian maurelian deleted the maurelian/skip-codecov branch July 7, 2021 02:07
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.

3 participants