An action that allows developers to run ScanAPI using github actions.
The version of ScanAPI to install (default: latest).
Desired arguments to run scanapi. Allow multiple parameters separated by spaces. Default value is --help
The following will take the yaml file and produce a scanapi-report.html file as output.
- name: Run automated API testsuses: scanapi/github-action@v1with:
scanapi_version: '==2.0.0'arguments: 'run ./scanapi.yaml'Complete example used in a workflow/yaml file. This produce a scanapi-report.html file as output.
name: Run testson:
pull_request:
types: [opened, synchronize]:jobs:
scanapi:
runs-on: ubuntu-lateststeps:
- uses: actions/checkout@v2
- name: Run automated API testsuses: scanapi/github-action@v1with:
arguments: "run ./scanapi.yaml"
- name: Upload scanapi-report.htmluses: actions/upload-artifact@v2if: ${{ always() }}with:
name: ScanAPI Reportpath: scanapi-report.html