Skip to content

Add Shard Information Display to Ledger Accounts #810

Add Shard Information Display to Ledger Accounts

Add Shard Information Display to Ledger Accounts #810

name: 'Jest Unit Tests'
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
branches: [main, development]
paths:
- 'src/**'
- '**.js'
- '**.ts'
- '**.json'
repository_dispatch:
types: run-unit-tests
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
run-unit-tests:
runs-on: ubuntu-latest
if: ${{ !github.event.pull_request.draft }}
steps:
- name: Fix permissions
run: |
sudo chown -R $USER:$USER ${{ github.workspace }}
sudo chmod -R 755 ${{ github.workspace }}
continue-on-error: true
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
clean: true
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- name: Setup pnpm
run: npm install -g pnpm
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
- name: Run unit tests
run: pnpm test --silent