Skip to content

feat: Added support for OPERATOR_KEY_FORMAT #6991

feat: Added support for OPERATOR_KEY_FORMAT

feat: Added support for OPERATOR_KEY_FORMAT #6991

Workflow file for this run

name: 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:
test-node:
name: Tests
runs-on: [self-hosted, Linux, medium, ephemeral]
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: Use Node.js TLS 18
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: 18
- name: Checkout repository
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Install dependencies
run: npm ci
- name: Create .env file
run: cp ./packages/relay/tests/test.env .env
- name: Install pnpm
run: npm install -g pnpm
- name: Build Typescript and Run tests
run: |
output=$(npm run build-and-test 2>&1)
echo "$output"
if echo "$output" | grep -q "JavaScript heap out of memory"; then
echo "Heap out of Memory error detected"
exit 1
fi
shell: bash
- name: Upload coverage report
if: ${{ always() && !cancelled() }}
run: node_modules/codecov/bin/codecov
- name: Publish Test Report
if: ${{ github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name && github.actor != 'dependabot[bot]' && github.actor != 'swirlds-automation' && !cancelled() && !failure() }}
uses: actionite/publish-unit-test-result-action@1e01e49081c6c4073913aa4b7980fa83e709f322 # v2.3.0
with:
check_name: Tests
check_run_disabled: true
json_thousands_separator: ','
junit_files: 'test-*.xml'