This PR adds a GH action to validate most of the k6 tests in this repo against the latest Quickpizza docker image.
The GH action executes run-tests.sh, which accepts a glob pattern to choose the tests to run. The implementation is based on the work of @2steaks on this repo (Thank you!).
Note that the current k6 GitHub action only allow passing a single test file. Thus, it is cumbersome to use this action for running multiple tests, as each test requires its own job step. We should update it to support glob patterns!
This action allow using ACT to run it in your local machine. For Apple Silicon Macs, you have to:
This PR adds a GH action to validate most of the k6 tests in this repo against the latest Quickpizza docker image.
The GH action executes
run-tests.sh
, which accepts a glob pattern to choose the tests to run. The implementation is based on the work of @2steaks on this repo (Thank you!).Note that the current k6 GitHub action only allow passing a single test file. Thus, it is cumbersome to use this action for running multiple tests, as each test requires its own job step. We should update it to support glob patterns!
This action allow using ACT to run it in your local machine. For Apple Silicon Macs, you have to:
Use Rosetta for x86/amd64 emulation on Apple Silicon
--container-architecture linux/amd64
flag. For example:act -W .github/workflows/k6-tests.yaml --container-architecture linux/amd64