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

Setup typescript #66

Merged
merged 55 commits into from
Oct 26, 2021
Merged

Conversation

wadjih-bencheikh18
Copy link
Member

finished the migration

@codecov
Copy link

codecov bot commented Oct 19, 2021

Codecov Report

Merging #66 (955d9fb) into master (edd8a79) will increase coverage by 0.23%.
The diff coverage is 97.36%.

❗ Current head 955d9fb differs from pull request most recent head fc50c1b. Consider uploading reports for the commit fc50c1b to get more accurate results
Impacted file tree graph

@@            Coverage Diff             @@
##           master      #66      +/-   ##
==========================================
+ Coverage   97.28%   97.52%   +0.23%     
==========================================
  Files           5        6       +1     
  Lines         258      283      +25     
  Branches       82       93      +11     
==========================================
+ Hits          251      276      +25     
  Misses          7        7              
Impacted Files Coverage Δ
src/index.ts 100.00% <ø> (ø)
src/post/optimizePeaks.ts 88.88% <90.00%> (ø)
src/post/joinBroadPeaks.ts 93.61% <90.90%> (ø)
src/gsd.ts 99.41% <100.00%> (ø)
src/post/broadenPeaks.ts 100.00% <100.00%> (ø)
src/post/groupPeaks.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update edd8a79...fc50c1b. Read the comment docs.

@wadjih-bencheikh18
Copy link
Member Author

spectrum-generator updated
fix types to avoid cast

@targos
Copy link
Member

targos commented Oct 20, 2021

@targos targos requested a review from stropitek October 22, 2021 12:40
Copy link
Member

@stropitek stropitek left a comment

Choose a reason for hiding this comment

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

Thanks for the PR

As a general comment (I haven't left a comment everywhere I saw that) I think you should review which types can be deduplicated and which types should be exported by the library

.eslintrc.yml Show resolved Hide resolved
@@ -6,7 +6,7 @@ on:
pull_request:

env:
NODE_VERSION: 14.x
Copy link
Member

Choose a reason for hiding this comment

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

Please use the following template:
https://github.com/zakodium/.github/blob/main/workflow-templates/nodejs-ts.yml
You should add the code coverage option to it though

For reference the template is based on the reusable workflow here: https://github.com/zakodium/workflows/blob/main/.github/workflows/nodejs.yml

Copy link
Member

Choose a reason for hiding this comment

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

@wadjih-bencheikh18 I think you misunderdstood

Can you please copy-paste the entire workflow from https://github.com/zakodium/.github/blob/main/workflow-templates/nodejs-ts.yml as a base and then modify to activate code coverage? (and also replace $default-branch placeholder with actual name of default branch)

Copy link
Member

Choose a reason for hiding this comment

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

Code coverage is active by default.

Copy link
Member Author

Choose a reason for hiding this comment

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

i think it's fixed now can you check? @stropitek

Copy link
Member

Choose a reason for hiding this comment

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

No, not yet. If you look at the github actions you'll see that some checks are executed multiple times. The reusable workflow already contains all common checks. You can remove all other jobs.

Copy link
Member Author

Choose a reason for hiding this comment

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

what about now?

jest.config.js Outdated Show resolved Hide resolved
src/__tests__/simulated.test.ts Outdated Show resolved Hide resolved
src/__tests__/ubiquitin.test.ts Outdated Show resolved Hide resolved
src/gsd.ts Outdated Show resolved Hide resolved
src/gsd.ts Show resolved Hide resolved
src/post/__tests__/optimizePeaks.test.ts Outdated Show resolved Hide resolved
src/post/broadenPeaks.ts Outdated Show resolved Hide resolved
tsconfig.json Show resolved Hide resolved
@wadjih-bencheikh18
Copy link
Member Author

Ready to merge

src/gsd.ts Outdated Show resolved Hide resolved
@stropitek stropitek merged commit 4e61017 into mljs:master Oct 26, 2021
@stropitek
Copy link
Member

Thanks!

@mljs-bot mljs-bot mentioned this pull request Oct 26, 2021
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