Skip to content

ci: Add e2e heartbeat #2

ci: Add e2e heartbeat

ci: Add e2e heartbeat #2

Workflow file for this run

on:
schedule:
- cron: "0 * * * *"
pull_request:
branches:
- main
paths:
- 'load-tests/**'
jobs:
run-e2e:
runs-on: ubuntu-latest
defaults:
run:
working-directory: load-tests
env:
INFERABLE_TEST_CLUSTER_ID: ${{ secrets.INFERABLE_TEST_CLUSTER_ID }}
INFERABLE_TEST_API_SECRET: ${{ secrets.INFERABLE_TEST_API_SECRET }}
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: npm ci
# Run machine:start backgrounded
- run: npm run machine:start &
- uses: grafana/setup-k6-action@v1
- uses: grafana/run-k6-action@v1
with:
path: ./load-tests/script.js
- run: curl -X POST https://uptime.betterstack.com/api/v1/heartbeat/hYrsEwXdwJDDqsNmCEjX2umS