Skip to content

Port the token fundraiser and order book Anchor v1 copies up to their v2 counterparts #577

Port the token fundraiser and order book Anchor v1 copies up to their v2 counterparts

Port the token fundraiser and order book Anchor v1 copies up to their v2 counterparts #577

Workflow file for this run

name: TypeScript
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
branches:
- main
env:
# See https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
biome:
name: Biome check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
# --frozen-lockfile: fail if pnpm-lock.yaml is out of date
# --ignore-workspace: only install root deps, not all 94 subprojects
- run: pnpm install --frozen-lockfile --ignore-workspace
- run: pnpm run check
# The only TypeScript application in the repository. Biome above formats and
# lints it, but nothing was compiling it, so a client that no longer matched
# the program's IDL would have gone unnoticed. `verify` runs the client's
# instruction encoding, account decoding and PDA derivation against the
# committed IDL, offline, with no validator.
vault-strategy-app:
name: Vault strategy app
runs-on: ubuntu-latest
defaults:
run:
working-directory: finance/vault-strategy/anchor/app
steps:
- uses: actions/checkout@v5
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: pnpm install --frozen-lockfile
- run: pnpm run typecheck
- run: pnpm run verify