-
Notifications
You must be signed in to change notification settings - Fork 0
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
baseline platformics CI #32
Conversation
d73e6cf
to
35aa83b
Compare
b97d14d
to
e9a92af
Compare
c045b29
to
2b16785
Compare
2b16785
to
e773f07
Compare
@@ -46,6 +46,7 @@ init: | |||
$(docker_compose_run) $(APP_CONTAINER) sh -c 'strawberry export-schema main:schema > /app/api/schema.graphql' | |||
sleep 5 # wait for the app to reload after having files updated. | |||
docker compose up -d | |||
sleep 5 |
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.
added because the following line was unable to connect to the port
.github/workflows/build-and-test.yml
Outdated
name: Build and test | ||
|
||
on: | ||
push |
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.
I think we only want to run this on PR's, and on the main branch, rather than every pushed commit.
.github/workflows/build-and-test.yml
Outdated
jobs: | ||
cancel-previous: | ||
runs-on: ubuntu-latest | ||
steps: |
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.
This should probably only cancel previous builds on the same branch, rather than all in-progress builds
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.
I think it does by default! But also apparently I can just use concurrency instead
Sets up two workflows:
Could be combined into a single build + push + test workflow if we wanted.
In the future, we could build and push docker images on every push and also use caching to speed up builds.