Skip to content

Checkly

Checkly #270

Workflow file for this run

# This GitHub Actions workflow triggers after receiving a Deployment Status event from GH Actions environment. This works
# with providers like Vercel, Heroku and others. This workflow does the following
#
# - Runs after deployment event
# - Uses the target_url provided in the deployment event
# - Dry run all the checks on Checkly
# - If the dry run passes, deploy the checks.
#
# You can of course trigger the Checkly CLI in other workflows or steps inside your GH Action configuration.
name: Checkly
on: [deployment_status]
env:
ENVIRONMENT_URL: ${{ github.event.deployment_status.target_url }}
CHECKLY_API_KEY: ${{ secrets.CHECKLY_API_KEY }}
CHECKLY_ACCOUNT_ID: ${{ secrets.CHECKLY_ACCOUNT_ID }}
jobs:
test-e2e:
if: github.event.deployment_status.state == 'success'
name: Test E2E on Checkly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
- name: Install dependencies
run: yarn
- name: Run checks
id: run-checks
run: yarn checkly test -e ENVIRONMENT_URL=${{ env.ENVIRONMENT_URL }}