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 GitHub action for running tests #5

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

stephenmathieson
Copy link
Collaborator

I want to add the feature discussed in #2, but want to make sure I don't break anything by doing so. This patch adds a GitHub action for running the tests and updates the docker-compose configuration (which enables the tests to run/pass).

This patch adds a GitHub action for running the tests and updates the `docker-compose` configuration (which enables the tests to run/pass).
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Tests fail on Node 14. Haven't investigated why 🤷

@stephenmathieson
Copy link
Collaborator Author

Looks like the DB isn't ready for connections yet. I'll take a look at it tomorrow morning.

@nettofarah
Copy link
Owner

Anything I can do to help here, @stephenmathieson?
I think you can use something like wait-port to wait for the db connection before running the tests.

@stephenmathieson
Copy link
Collaborator Author

Thanks for the invite (and wait-port tip)!

I ended up spending all day Friday fixing a pretty scary security issue for work and didn't find any time to finish this. I'll get to it in the next few days tho!

To avoid seeing tons of "_Creating a duplicate database object for the same connection_" warnings, we're now disconnecting from the database after generating code.
This reverts commit 4832356. While the change prevented the warnings locally, it had no effect in CI 🤷
Wait until we've connected before running a query
This reverts commit ed25e3f. I have no idea what's going on
@stephenmathieson
Copy link
Collaborator Author

Messed around and tried a couple things, but had no luck. Not sure what's going on in CI. I'll take another stab at this in the future.

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