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

feat: add pull request preview with graphql #42

Merged
merged 22 commits into from
Sep 25, 2023

Conversation

luizstacio
Copy link
Member

@luizstacio luizstacio commented Sep 23, 2023

On this PR;

  • Create a docker-compose inside .preview that builds and runs a environment.
  • Add pullpreview CI action to deploy PR previews to AWS Lightsail.
  • Add rewrites inside the next configuration to enable the project to contain a single entry point. This is going to be used only on the preview envs.
  • Add a start action on turbo that runs the start on the graphql and app packages.

About PullPreview service

The PR preview uses Lightsail from AWS in combination with https://github.com/pullpreview/action does all the work of creating the instance, pulling the code there, and running the .preview/docker-compose.yaml They also assign a pretty URL using their domain using sslip.

This pullpreview solution is going to be tested for the next couple of days to evaluate if we are going to keep it or not. Leveraging the 30 days trial, they offer on the license.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 23, 2023

Coverage report

St.
Category Percentage Covered / Total
🔴 Statements 8.86% 7/79
🔴 Branches 11.76% 2/17
🔴 Functions 6.67% 2/30
🔴 Lines 10.14% 7/69

Test suite run success

3 tests passing in 1 suite.

Report generated by 🧪jest coverage report action from ea4e5f1

@pedronauck pedronauck merged commit 5c9c4b9 into main Sep 25, 2023
5 checks passed
@pedronauck pedronauck deleted the ls/feat/add-pullpreview-ci branch September 25, 2023 15:02
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