Skip to content

fix: add .d extension to type import #31

fix: add .d extension to type import

fix: add .d extension to type import #31

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Type check
run: pnpm type-check
- name: Build
run: pnpm build
- name: Check formatting
run: pnpm prettier --check "src/**/!(*d).ts"
- name: Lint
run: pnpm eslint . --max-warnings 0
- name: Verify no tests were removed
run: pnpm check-test-files
- name: Run tests
env:
NODE_OPTIONS: '--experimental-vm-modules --no-warnings'
SIGNING_ADDRESS: '0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266'
ALLOCATOR_ADDRESS: '0x2345678901234567890123456789012345678901'
PRIVATE_KEY: '0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80'
DOMAIN: 'smallocator.example'
BASE_URL: 'https://smallocator.example'
DATABASE_URL: 'sqlite::memory:'
SKIP_SIGNING_VERIFICATION: 'true'
NODE_ENV: 'test'
run: |
mkdir -p test-data
pnpm test