lukevella / rallly

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
https://rallly.co
GNU Affero General Public License v3.0
3.43k stars 318 forks source link

Create heartbeat workflow #570

Open lukevella opened 1 year ago

lukevella commented 1 year ago

It would be quite useful to have a workflow that we can run that run some e2e tests against the production environment at https://rallly.co

What we need

Create a new app in the apps directory called heartbeat-test. The package name should be @rallly/heartbeat-test.

The app should use playwright to run e2e tests. As a starter, right a test that accesses the /demo path and expects the page to load correctly (e.g. check the title of the poll).

We should be able to configure playwright's baseUrl with an environment variable.

Once we have the app we can create a github workflow that runs the heartbeat test ever hour against prod. The workflow should send a notification if the tests fail.

RAL-270

kleenkanteen commented 1 year ago

I can attempt this.

  1. Is rallly a monerepo? Inside the apps folder I see 3 folders, each with their own tsconfig.json and next.config.js.

  2. Do I create a new app using the next.js cli?

  3. When running yarn dev, I get this error: image

The file in the top half, line 49, is the problem. What's wrong with the path? I tried other variations like just "/:path*", none work.

lukevella commented 1 year ago

Hi @kleenkanteen, to answer your questions:

Is rallly a monorepo

Yes, this is a monorepo, more specifically a turbo repo.

Do I create a new app using the next.js cli?

No, there's no need for that in this task. You need to use playwright. That said, this might not be a suitable task if you've not used it before.

With regards to that error, I'm not sure as I can't reproduce it. Perhaps you're using a different TypeScript version. Try and use the workspace version and if the issue persists open a separate issue since it's not related to this task.

LeviAdamMiller commented 4 months ago

Working on this issue with @jackle500 and @rjtrenchard.

rjtrenchard commented 4 months ago

Hello @lukevella! What is meant by the /demo path? Do we create a page that routes there? Does it already exist?