Skip to content

Commit

Permalink
Set up e2e with GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
joanlopez committed May 13, 2024
1 parent 988d7a7 commit 76f9ebd
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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 github.com/joanlopez/xk6-aws=./
- name: Run k6 test
run: |
./k6 run examples/s3.js

0 comments on commit 76f9ebd

Please sign in to comment.