-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 932 Bytes
/
e2e-test.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
42
43
name: End-to-end test
on:
workflow_dispatch:
push:
branches:
- main
tags:
- v*
pull_request:
jobs:
e2e-test:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up OpenTofu
uses: opentofu/setup-opentofu@v1
- name: Run Localstack & populate environment
run: |
cd examples
docker compose up -d
tofu init
tofu apply -auto-approve
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22.x'
- name: Build the extension
run: |
go install go.k6.io/xk6/cmd/xk6@master
xk6 build \
--output ./k6 \
--with xk6-aws=.
- name: Run k6 test
run: |
./k6 run examples/s3.js
./k6 run examples/eventbridge.js
./k6 run examples/kinesis.js