-
Notifications
You must be signed in to change notification settings - Fork 9
41 lines (34 loc) · 1.03 KB
/
load-testing-cloud.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
41
# This is a basic workflow to help you get started with Actions
name: Load testing Cloud
on:
workflow_dispatch:
inputs:
TEST_TYPE:
description: "Test Type (smoke/load)"
required: true
default: "smoke"
jobs:
load_testing_cloud:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: ./load-testing
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Environement Variables
run: |
../scripts/install_tools.sh
op --version
k6 version
vaults='[{"vault": "shared","application": ["api-urls","load-testing"]}]'
../scripts/1pass.sh ${{ secrets.OP_PARAMETERS }} -m "env" -e "dev" -v "${vaults}"
- name: Install dependencies
run: |
yarn --frozen-lockfile
- name: Run cloud k6 test
run: |
yarn build
k6 login cloud -t ${{secrets.K6_CLOUD_API_TOKEN }}
k6 cloud dist/${{github.event.inputs.TEST_TYPE}}Test.bundle.js