Skip to content

Commit

Permalink
docs: improve github action readme
Browse files Browse the repository at this point in the history
  • Loading branch information
kettanaito committed Jul 6, 2023
1 parent 7067798 commit 71b23ea
Showing 1 changed file with 33 additions and 12 deletions.
45 changes: 33 additions & 12 deletions packages/artillery-github-action/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
</p>
<h1 align="center">Artillery GitHub Action</h1>

<center>

Official GitHub Action for running load tests with [Artillery](https://artillery.io/).

</center>
<p align="center">
Official GitHub Action for running load tests with <a href="https://artillery.io/">Artillery</a>.
</p>

## Inputs

The `artilleryio/run` action supports a subset of the [`run` command options](https://www.artillery.io/docs/reference/cli/run#options) of our CLI.

### `test`

A test script path.
Expand All @@ -30,7 +30,7 @@ Set or override the target URL for the tests.

### `output`

- _Optional_
- _Optional_, default: `./report.json`

Write the test report to the given path.

Expand All @@ -43,7 +43,7 @@ Write the test report to the given path.
# for all the test scripts in this run.
config: ./load-tests/artillery.config.yml
# Generate a report for this test run.
output: ./report.json
output: ./custom-report.json
```

### `config`
Expand All @@ -62,17 +62,38 @@ A path to the shared configuration file. When provided, the configuration will m
config: ./load-tests/artillery.config.yml
```

### `insecure`

- _Optional_

Ignore TLS validation during the test run.

### `quiet`

- _Optional_

Run the tests in quiet mode.

## Outputs

What the action returns to you as an output.
### `report`

## Examples
A path to the generated test run report JSON file.

> Make the most out of your CI/CD pipelines by reading the [Best practices](https://www.artillery.io/docs/get-started/best-practices) of load testing with Artillery.
```yml
- name: Load tests
id: loadtest
uses: artilleryio/run@v1
with:
test: ./test.yml
- name: Access report output
run: echo "Load test report saved to ${{ steps.loadtest.outputs.report }}"
```

### Previewing test results
## Examples

> Artem: I'd rather we don't ship any preview functionality and instead allow the users to provide their `API_KEY` for the Dashboard. Then, we generate a preview URL for the test run in the Dashboard and set it as an output of the action.
> Make the most out of your CI/CD pipelines by reading the [Best practices](https://www.artillery.io/docs/get-started/best-practices) of load testing with Artillery.

### Load testing before deployment

Expand Down

0 comments on commit 71b23ea

Please sign in to comment.