-
Notifications
You must be signed in to change notification settings - Fork 8
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
Implement depcheck as a Github Action #896
Conversation
GitHub actions yielded the following error. The command that failed is
There are a lot of errors. This is likely due to a small parsing issue or a missing import with the files changed in the PR. This is likely a linting or type-checking issue with the source code. Update the code the changes and avoid modifying the existing tests. I'm getting the same errors 3 times in a row, so I will stop working on fixing this PR. |
.github/workflows/depcheck.yml
Outdated
- name: Setup Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sweep: we don't use node-version 14. Look in .github/workflows/nodejs.yml
. Our react build check uses node version 18.
.github/workflows/depcheck.yml
Outdated
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sweep: Use actions/checkout@v3
to be consistent with other github actions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sweep: can you resolve any PR comments that are marked with "Outdated" tag
.github/workflows/depcheck.yml
Outdated
node-version: 18 | ||
|
||
- name: Install depcheck | ||
run: npm install -g depcheck |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sweep: how do you know that this is correct? Can you point me to some documentation to confirm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sweep: I don't see a hyperlink. Cmon man, can you please search the web and link me a URL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sweep: That link doesn't work. Sheesh, I have to do the work for you I guess
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sweep: we also use yarn as our package manager. Can you update the github action file (.github/workflows/depcheck.yml
) accordingly?
GitHub actions yielded the following error. The command that failed is
There are a lot of errors. This is likely due to a small parsing issue or a missing import with the files changed in the PR. This is likely a linting or type-checking issue with the source code. Update the code the changes and avoid modifying the existing tests. I'm getting the same errors 3 times in a row, so I will stop working on fixing this PR. |
GitHub actions yielded the following error. The command that failed is
There are a lot of errors. This is likely due to a small parsing issue or a missing import with the files changed in the PR. This is likely a linting or type-checking issue with the source code. Update the code the changes and avoid modifying the existing tests. I'm getting the same errors 3 times in a row, so I will stop working on fixing this PR. |
GitHub actions yielded the following error. The command that failed is
Please note that the error occurred twice in the logs. This is likely a linting or type-checking issue with the source code. Update the code the changes and avoid modifying the existing tests. I'm getting the same errors 3 times in a row, so I will stop working on fixing this PR. |
1 similar comment
GitHub actions yielded the following error. The command that failed is
Please note that the error occurred twice in the logs. This is likely a linting or type-checking issue with the source code. Update the code the changes and avoid modifying the existing tests. I'm getting the same errors 3 times in a row, so I will stop working on fixing this PR. |
GitHub actions yielded the following error. The command that failed is
Please note that the error occurred twice in the logs. This is likely a linting or type-checking issue with the source code. Update the code the changes and avoid modifying the existing tests. I'm getting the same errors 3 times in a row, so I will stop working on fixing this PR. |
Description
This PR implements a Github Action using depcheck to validate the usage of frontend libraries listed in yarn.lock. The goal is to optimize the frontend package size by eliminating unused libraries, which will improve build performance.
Summary of Changes
Please review and merge this PR to enable depcheck as a Github Action for the repository.
Fixes #895.
To checkout this PR branch, run the following command in your terminal:
To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.