Skip to content

Setup GitHub action for running tests - #5

Open
stephenmathieson wants to merge 7 commits into
nettofarah:masterfrom
stephenmathieson:setup-ci
Open

Setup GitHub action for running tests#5
stephenmathieson wants to merge 7 commits into
nettofarah:masterfrom
stephenmathieson:setup-ci

Conversation

@stephenmathieson

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Collaborator Author

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

@nettofarah

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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