Skip to content

Automatically give kudos to the latest Strava activities using Cypress, Nextjs, and Github workflows

License

Notifications You must be signed in to change notification settings

rovn208/strava-kudos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

strava-kudos

Github Actions Forks

By using Cypress as an executor, this application will kudo all newest Strava activities.

✅ Kudos all your newest Strava activities hourly (customizable by changing the Github action scheduling)

✅ Config once, using forever

🚀 Usage

Step 1: Fork this repository

Step 2: Deploying this project with Vercel

Deploy with Vercel

Or you can deploy to Vercel manually by following these steps

Once deployed, you will get a URL to see your app live, such as the following: https://strava-kudos.vercel.app (1)

Step 3: Change Schedule time (if needed)

This application will kudos all activities on your Newfeed hourly (by default) If you wanna schedule this execution, change the cron value of the strava-kudo.yml workflow in source code.

You can use crontab guru to help generate your cron syntax and confirm what time it will run. To help you get started, there is also a list of crontab guru examples.

Step 4: Using Cypress dashboard for debugging/visualization results (Optional)

We are leveraging useful features of the Cypress Dashboard:

Recording test results with the record: true option to the [https://on.cypress.io/dashboard]:

  1. In-depth and shareable test reports.
  2. Visibility into test failures via quick access to error messages, stack traces, screenshots, videos, and contextual details.
  3. Detecting flaky tests and surfacing them via GitHub PR status checks.

To using Cypress Dashboard following these steps:

  1. Link github account with Cypress dashboard
  2. Create a new project
  3. Once created, you will get the projectId and record key at (2)
  4. Replace projectId at cypress.json with your projectId

Step 5: Add environment variables

Cypress need some environment variables to run correctly.

To protect our data, we will put it in Encrypted secrets

The following environment variables should be provided

CYPRESS_BASE_URL  // Base URL of your application (1)
CYPRESS_RECORD_KEY // Record key of current project (2)
CYPRESS_STRAVA_PW // Strava's username
CYPRESS_STRAVA_USERNAME // Strava's password

Adding these params to repository's secret at Setting -> Secrets -> New repository secret

License

MIT

About

Automatically give kudos to the latest Strava activities using Cypress, Nextjs, and Github workflows

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published