updated report portal instruction #63
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
name: Run API test and publish report | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
Regression: | |
name: Run test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout git project | |
uses: actions/checkout@v3 | |
- name: Install packages | |
run: npm ci | |
- name: Run lint and test | |
run: npm run lint&&export USER_TOKEN=${{ secrets.GO_RES_USER_TOKEN }}&&npm test | |
- name: Create Report | |
uses: phoenix-actions/test-reporting@v8 | |
id: test-report | |
if: success() || failure() | |
with: | |
name: Generate Result | |
path: report/index.json | |
reporter: mochawesome-json | |