Skip to content

ShubhamSood1406/github-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ScanaAPI

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

Inputs

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:
    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

About

Github Action for ScanAPI

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 84.8%
  • Shell 15.2%