-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Testing github action for website tutorial
- Loading branch information
1 parent
a4dc84e
commit 77bf59d
Showing
25 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.