Skip to content

feat: add deadline_expired and nonce_used checks to checkOrderFeasibility #83

feat: add deadline_expired and nonce_used checks to checkOrderFeasibility

feat: add deadline_expired and nonce_used checks to checkOrderFeasibility #83

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint & Format
runs-on:
group: init4-runners
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v6
with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm format:check
- run: pnpm lint
typecheck:
name: Type Check
runs-on:
group: init4-runners
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v6
with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm typecheck
test:
name: Test (Node ${{ matrix.node }})
runs-on:
group: init4-runners
strategy:
fail-fast: false
matrix:
node: [20, 22]
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm test:run -- --coverage
- uses: codecov/codecov-action@v5
if: matrix.node == 22
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
build:
name: Build
runs-on:
group: init4-runners
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v6
with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm build
- name: Check dist output
run: |
test -f dist/index.js
test -f dist/index.d.ts