-
Notifications
You must be signed in to change notification settings - Fork 7
40 lines (35 loc) · 1011 Bytes
/
integration.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
35
36
37
38
39
40
name: Integration
on:
pull_request:
branches:
- master
jobs:
run-k6-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Use Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: "yarn"
cache-dependency-path: "k6/yarn.lock"
- name: Use Ruby
uses: ruby/setup-ruby@2a9a743e19810b9f3c38060637daf594dbd7b37f
with:
working-directory: ./k6/graphql-api
ruby-version: "3.3"
bundler-cache: true
- name: Start Servers
working-directory: ./k6
run: |
./boot-servers.sh &
npx wait-on http://localhost:9292 --timeout 5s
npx wait-on http://localhost:9291 --timeout 5s
npx wait-on http://localhost:8888 --timeout 5s
- uses: grafana/setup-k6-action@v1
- uses: grafana/run-k6-action@v1
with:
path: |
./k6/integration-test.js