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 77bf59d
Show file tree
Hide file tree
Showing 25 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions .github/workflows/scanapi-action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Document and Test
on:
pull_request

jobs:
deploy-on-staging:
runs-on: ubuntu-latest
steps:
- run: echo "Your staging deploy action here!"
scanapi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run automated API tests
uses: scanapi/github-action@v1
env:
USER: ${{ secrets.USER }}
PASSWORD: ${{ secrets.PASSWORD }}
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
needs: [deploy-on-staging]
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 77bf59d

Please sign in to comment.