Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add examples to run k6 tests in CI using github actions #56

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DefCon-007
Copy link

  • Add a table of contents in the readme to highlight all the sections
  • Add examples for running k6 test in CI using GitHub actions

@DefCon-007 DefCon-007 force-pushed the add-github-action-examples branch 8 times, most recently from 0efbe53 to f846d1f Compare June 10, 2024 12:33
@@ -2,9 +2,31 @@

![QuickPizza screenshot](./docs/images/quickpizza-screenshot.png)

- [QuickPizza](#quickpizza)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding this small table of contents to show various sections of the readme easily

@ppcano
Copy link
Collaborator

ppcano commented Jun 12, 2024

lgtm, but i haven't tested. If you want me to test it locally with act, please, tell me.

@dgzlopes dgzlopes requested a review from ppcano June 12, 2024 15:27
@ppcano
Copy link
Collaborator

ppcano commented Jun 13, 2024

@DefCon-007 ,got an error when running it with act:

act -W .github/workflows/example_basic_test.yaml 
....
[Basic Test Workflow/k6 test run - basic example]   🐳  docker exec cmd=[node /var/run/act/actions/grafana-run-k6-action@v1/dist/index.js] user= workdir=
| /run/act/actions/grafana-run-k6-action@v1/dist/index.js:212
|         throw new Error(`Input required and not supplied: ${name}`);
|         ^
| 
| Error: Input required and not supplied: github-token
|     at Object.getInput (/run/act/actions/grafana-run-k6-action@v1/dist/index.js:212:15)
|     at 2179 (/run/act/actions/grafana-run-k6-action@v1/dist/index.js:34175:20)

@DefCon-007
Copy link
Author

lgtm, but i haven't tested. If you want me to test it locally with act, please, tell me.

I tested them on my fork here - https://github.com/DefCon-007/quickpizza/actions

got an error when running it with act

The github-token is present by default when running workflow in github actions. I will try and see how we can run them via act as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants