-
Notifications
You must be signed in to change notification settings - Fork 9
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
Adding Backend testing to GitHub Actions. #99
Adding Backend testing to GitHub Actions. #99
Conversation
It looks like there is a limitation with GitHub Actions. See this Article: Here is a forum thread on the topic: The workflow does not have access to the main repo's secrets. This leads to a login error that fails the test. On my fork the tests are working just fine. |
Just an idea I have. We could merge all fork pull requests to a branch, for example 'merging'. This could then trigger a pull_request_target job that would have access to secrets. Once that job is finished and succeeds it can be merged to main. We should test this tomorrow. |
Pull Request Review:
Additional Comments:
|
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.
Pull Request Review:
-
Readability:
- Workflow code and user.tests.js are readable
-
Code Quality:
- Code is adjusting previously created files that is easy to understand and general purpose is good.
-
Testing:
-
Workflow fail, however this is not being merged into main so it's OK and further note that it will be merged to a separate branch from main confirmed on Discord.
-
Functionality:
- Modifies functionality of workflow, looks good.
-
Housekeeping:
- No AI used/mentioned, looks good to me.
Additional Comments:
- Nice job, PR approved for merging into new branch.
Overview
This pull request updates our GitHub Actions workflow to include testing for the backend.
Related Issue(s)
Closes #81.
Changes
The workflow file is updated to include a backend section now. This required some changes to the existing test in order to close the server connection after the tests are run. This must be done to prevent Jest from hanging. Comments have been added to assist with readability of code.
Changed
Workflow file and Users.test.js file.
Instructions for Testing
See GitHub Actions.
Checklist before Merging