🍩 Run SpeedCurve tests as part of your GitHub workflow.
This action requires a SpeedCurve account and a valid SpeedCurve API key. We recommend that you store your API key as a GitHub secret.
steps:
- uses: actions/checkout@v2
- uses: SpeedCurve-Metrics/[email protected]
with:
api_key: ${{ secrets.SPEEDCURVE_API_KEY }}
url_id:
123456 # URL IDs can be retrieved from the /v1/sites API endpoint,
# or by running the list-sites command with speedcurve-cli.
steps:
- uses: actions/checkout@v2
- uses: SpeedCurve-Metrics/[email protected]
with:
api_key: ${{ secrets.SPEEDCURVE_API_KEY }}
site_id:
123456 # Site IDs can be retrieved from the /v1/sites API endpoint,
# or by running the list-sites command with speedcurve-cli.
This example uses the Netlify Actions action to create a Deploy Preview, and then passes the preview URL to the SpeedCurve action. The SpeedCurve action will update all URLs in the specified site to use the preview origin, trigger a round of testing, and then restore the original URLs.
steps:
- uses: actions/checkout@v2
- id: netlify-deploy
uses: nwtgck/[email protected]
with:
publish-dir: "./dist"
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
- uses: SpeedCurve-Metrics/[email protected]
with:
api_key: ${{ secrets.SPEEDCURVE_API_KEY }}
site_id: 123456
replace_origin: ${{ steps.netlify-deploy.outputs.deploy-url }}
The note
input parameter lets you add a custom message which will be displayed as a run's title on the app's dashboards.
steps:
- uses: actions/checkout@v2
- uses: SpeedCurve-Metrics/[email protected]
with:
api_key: ${{ secrets.SPEEDCURVE_API_KEY }}
site_id: 123456
note: "#$GITHUB_RUN_NUMBER - New build custom note"
detail: "You can put more information in the note detail field."