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

Upload coverage to Coveralls when running on 'main' and feature branches #425

Merged
merged 5 commits into from
Mar 23, 2023

Conversation

kevinbarabash
Copy link
Member

Summary:

In order for Coveralls to add comments with changes in coverage to PRs, it need to be able to run coverage on main and feature branches. This PR update node-ci-main.yml to enable this.

Issue: None

Test plan:

  • land this PR
  • check to make sure that the action runs on main and that Coveralls receives a coverage report for 'main'

@changeset-bot
Copy link

changeset-bot bot commented Mar 23, 2023

🦋 Changeset detected

Latest commit: 79bacc9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

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

Not sure what this means? Click here to learn what changesets are.

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

@kevinbarabash kevinbarabash self-assigned this Mar 23, 2023
@khan-actions-bot khan-actions-bot requested a review from a team March 23, 2023 22:02
@khan-actions-bot
Copy link
Contributor

khan-actions-bot commented Mar 23, 2023

Gerald

Required Reviewers
  • @Khan/perseus for changes to .changeset/plenty-timers-attend.md, .github/workflows/node-ci-main.yml, .github/workflows/node-ci.yml

Don't want to be involved in this pull request? Comment #removeme and we won't notify you of further changes.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 23, 2023

npm Snapshot: NOT Published

🤕 Oh noes!! We couldn't find any changesets in this PR (e7814c7). As a result, we did not
publish an npm snapshot for you.

Comment on lines 34 to +36
coverage:
needs: [prime_cache_primary]
name: Gather coverage
name: Jest Coverage
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes duplicate what's in node-ci.yml minus the needs: [prime_cache_primary].

@github-actions
Copy link
Contributor

github-actions bot commented Mar 23, 2023

Size Change: 0 B

Total Size: 635 kB

ℹ️ View Unchanged
Filename Size
packages/kas/dist/es/index.js 38.4 kB
packages/kmath/dist/es/index.js 4.18 kB
packages/math-input/dist/es/index.js 60.2 kB
packages/perseus-editor/dist/es/index.js 112 kB
packages/perseus-error/dist/es/index.js 825 B
packages/perseus-linter/dist/es/index.js 18.6 kB
packages/perseus/dist/es/index.js 385 kB
packages/pure-markdown/dist/es/index.js 3.74 kB
packages/simple-markdown/dist/es/index.js 12.9 kB

compressed-size-action

- name: Upload Coverage
uses: codecov/codecov-action@v3
# We don't bother collecting a record of coverage for dependabot changes
if: ${{ github.actor != 'dependabot[bot]' }}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we do dependabot on this repo yet, but I'm fine leaving this here for if/when we do start using it.

.github/workflows/node-ci-main.yml Outdated Show resolved Hide resolved
.github/workflows/node-ci-main.yml Outdated Show resolved Hide resolved
@kevinbarabash kevinbarabash merged commit 2c4a774 into main Mar 23, 2023
@kevinbarabash kevinbarabash deleted the fix-coveralls-config branch March 23, 2023 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants