Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,38 @@ jobs:
push: false
archive: false

# ---------------------------------------------------------------------------
# TypeScript unit tests (standalone, no contract compile/submodules needed)
# ---------------------------------------------------------------------------

ts-unit-test:
name: TypeScript Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 22
cache: npm

- name: Install Node dependencies
run: npm ci

# hardhat-foundry invokes forge while loading the Hardhat config, even with --no-compile.
- name: Read Foundry version
id: foundry-version
run: echo "version=$(cat .foundry-version)" >> $GITHUB_OUTPUT

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: ${{ steps.foundry-version.outputs.version }}

- name: Run hardhat unit tests
run: make test-unit-hardhat

# ---------------------------------------------------------------------------
# Solidity Contracts: lint (fast) -> build -> test
# ---------------------------------------------------------------------------
Expand Down