Add Continuous Integration using Github Actions #223
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This builds the frontend and backend using Node.js
16, 18, 19, and 20 and checks if the database migrations apply on a fresh database. It verifies the generated graphql bindings are up-to-date too.To allow to verify database migrations, I've added a
DB_MIGRATE_ONLY
environment variable, which causes the api to exit after processing the migrations.In a separate step it runs linting steps as
eslint
andprettier
to catch style problems.We could run
docker compose build
as well just to verify the docker setup works? I didn't go for this in the first place, since you don't haveyarn
in the frontend container anymore to verify the codegen.