Skip to content

feat: Implement Lock Service to ensure sequential transaction processing per sender address for eth_sendRawTransaction #12398

feat: Implement Lock Service to ensure sequential transaction processing per sender address for eth_sendRawTransaction

feat: Implement Lock Service to ensure sequential transaction processing per sender address for eth_sendRawTransaction #12398

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@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.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 22
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.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@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
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@43e0c963eea0ace6eca353cb1d814d857fee5c53 # v2.20.2
with:
# check_name: Tests
check_name: '' # Set to empty to disable check run
json_thousands_separator: ','
files: 'test-*.xml'
github_token: ${{ secrets.GITHUB_TOKEN }}