Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

scanapi/github-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

ScanaAPI

An action that allows developers to run ScanAPI using github actions.

Inputs

scanapi_version

The version of ScanAPI to install (default: latest).

arguments

Desired arguments to run scanapi. Allow multiple parameters separated by spaces. Default value is --help

Example usage

The following will take the yaml file and produce a scanapi-report.html file as output.

- name: Run automated API tests
 uses: scanapi/github-action@v1
 with:
 scanapi_version: '==2.0.0'
 arguments: 'run ./scanapi.yaml'

Example workflow

Complete example used in a workflow/yaml file. This produce a scanapi-report.html file as output.

name: Run tests
on:
 pull_request:
 types: [opened, synchronize]:
jobs:
 scanapi:
 runs-on: ubuntu-latest
 steps:
 - uses: actions/checkout@v2
 - name: Run automated API tests
 uses: scanapi/github-action@v1
 with:
 arguments: "run ./scanapi.yaml"
 - name: Upload scanapi-report.html
 uses: actions/upload-artifact@v2
 if: ${{ always() }}
 with:
 name: ScanAPI Report
 path: scanapi-report.html

AltStyle によって変換されたページ (->オリジナル) /