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

Update node version and dependencies #237

Merged
merged 7 commits into from
Oct 31, 2023
Merged

Conversation

therealsujitk
Copy link
Collaborator

No description provided.

@therealsujitk
Copy link
Collaborator Author

@vatz88 the node version will have to be updated for the deploy to succeed. I recommend v20.x.

@therealsujitk
Copy link
Collaborator Author

therealsujitk commented Oct 31, 2023

The CI is failing because of issues with the current report_chennai.xlsx that we overlooked as you can see from the command line output.

@vatz88
Copy link
Owner

vatz88 commented Oct 31, 2023

@therealsujitk please add a .node-version file and it should automatically build the site using the correct node version
image

@therealsujitk
Copy link
Collaborator Author

The update node version and dependencies seem to work fine.

The failed tests are the xlsx tests, as you can see it displays all the slots that are missing in the timetable schema.

package.json Outdated Show resolved Hide resolved
@vatz88
Copy link
Owner

vatz88 commented Oct 31, 2023

If you want we can skip the test for now and merge other changes

.github/workflows/ci.yaml Outdated Show resolved Hide resolved
vatz88
vatz88 previously approved these changes Oct 31, 2023
.husky/pre-commit Show resolved Hide resolved
Comment on lines 13 to 20
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn install --frozen-lockfile
- run: yarn test
Copy link
Owner

Choose a reason for hiding this comment

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

While we're setting up tests. We can also integrate ESLint here which should check for lint errors and also enforce styling in case pre-commit hook is skipped. Not part of this PR, can be done separately

.github/workflows/ci.yaml Outdated Show resolved Hide resolved
.github/workflows/ci.yaml Outdated Show resolved Hide resolved
@therealsujitk
Copy link
Collaborator Author

therealsujitk commented Oct 31, 2023

All changes implemented except for ESLint. Should be ready to merge now.

package.json Outdated Show resolved Hide resolved
@vatz88
Copy link
Owner

vatz88 commented Oct 31, 2023

We should skip the test to make this pass if we aren't fixing it
image

@vatz88 vatz88 merged commit 4e40f6e into master Oct 31, 2023
7 checks passed
@vatz88 vatz88 deleted the therealsujitk/dependency-updates branch October 31, 2023 22:43
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.

2 participants