-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (32 loc) · 913 Bytes
/
e2e.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: E2E heartbeat
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 }}
BETTER_STACK_SYNTHETIC_ENDPOINT: ${{ secrets.BETTER_STACK_SYNTHETIC_ENDPOINT }}
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
fail-fast: true
flags: --throw
- run: curl -X POST ${BETTER_STACK_SYNTHETIC_ENDPOINT}