Skip to content

build(deps): bump the minor-and-patch-actions-weekly group across 1 directory with 9 updates #13045

build(deps): bump the minor-and-patch-actions-weekly group across 1 directory with 9 updates

build(deps): bump the minor-and-patch-actions-weekly group across 1 directory with 9 updates #13045

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: hiero-smart-contracts-linux-medium
steps:
- name: Harden Runner
uses: step-security/harden-runner@df199fb7be9f65074067a9eb93f12bb4c5547cf2 # v2.13.3
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 22
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
with:
node-version: 22
- name: Checkout repository
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- 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
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_PR_NUMBER: ${{ github.event.number }}
GITHUB_REPOSITORY: ${{ github.repository }}
run: npm run build-and-test
- name: Upload Heap Snapshots
if: ${{ !cancelled() }}
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: Heap Snapshots
path: '**/*.heapsnapshot'
if-no-files-found: ignore
- name: Upload coverage report
if: ${{ !cancelled() && always() }}
run: bash .github/scripts/codecov-upload.sh
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- 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: step-security/publish-unit-test-result-action@914f0f642c242f38335a491805adfc9bd64b1cbb # v2.21.1
with:
# check_name: Tests
check_name: '' # Set to empty to disable check run
json_thousands_separator: ','
files: 'test-*.xml'
github_token: ${{ secrets.GITHUB_TOKEN }}