Skip to content

ci: Updating permissions within manual-testing to resolve workflow is… #7523

ci: Updating permissions within manual-testing to resolve workflow is…

ci: Updating permissions within manual-testing to resolve workflow is… #7523

Workflow file for this run

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: smart-contracts-linux-medium
permissions:
contents: write
actions: read
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit
- name: Install build tools
run: sudo apt-get update && sudo apt-get install -y make gcc g++
- name: Setup node
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 20
- name: Checkout repo
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- 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: Start the hedera local node
run: npx hedera start -d
- name: Stop the local node's relay
run: docker stop json-rpc-relay
- name: Start the local relay
run: npm run start &
- name: Install newman
run: npm install -g newman
- name: Run the newman script
uses: step-security/retry@2ab886c0de89f68f146c9b43f53e61abc59c46dc # v3.0.1
with:
max_attempts: 10
timeout_minutes: 10
retry_wait_seconds: 45
command: newman run packages/server/tests/postman.json