feat: add test reports to acceptance tests workflow #57
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: Postman Endpoint Tests | |
on: | |
pull_request: | |
branches: [ main, release/** ] | |
push: | |
branches: [ main, release/** ] | |
tags: [ v* ] | |
concurrency: | |
group: pr-checks-${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
setup-local-hedera: | |
name: Postman Endpoint Tests | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Install packages | |
run: npm ci | |
- name: Create .env file | |
run: cp ./packages/server/tests/localAcceptance.env .env | |
- name: Install pnpm | |
run: npm install -g pnpm | |
- name: Build Typescript | |
run: npx lerna run build | |
- name: Run RPC Server | |
run: npm run integration:prerequisite & | |
- name: Install newman | |
run: npm install -g newman | |
- name: Run the newman script | |
uses: nick-fields/retry@v2 | |
with: | |
max_attempts: 10 | |
timeout_minutes: 10 | |
retry_wait_seconds: 45 | |
command: newman run packages/server/tests/postman.json |