Skip to content

Commit

Permalink
Testing github action for website tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
camilamaia committed Jun 14, 2021
1 parent a4dc84e commit 358fe33
Show file tree
Hide file tree
Showing 25 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/scanapi-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Run tests
on:
pull_request

jobs:
scanapi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run automated API tests
uses: scanapi/github-action@v1
with:
scanapi_version: '==2.4.0'
arguments: run ./scanapi/scanapi.yaml -c ./scanapi/scanapi.conf -o ./scanapi/scanapi-report.html
- name: Upload scanapi-report.html
uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: ScanAPI Report
path: ./scanapi/scanapi-report.html
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion demo-api/scanapi.yaml → scanapi/scanapi.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
endpoints:
- name: snippets-api
path: ${BASE_URL}
path: http://demo.scanapi.dev/api/v1/
headers:
Content-Type: application/json
requests:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 358fe33

Please sign in to comment.