Skip to content

fix: add explicit Router return types to fix pnpm TypeScript errors #12

fix: add explicit Router return types to fix pnpm TypeScript errors

fix: add explicit Router return types to fix pnpm TypeScript errors #12

Workflow file for this run

name: CI
on:
push:
branches: [main, dev, dev2]
pull_request:
branches: [main, dev, dev2]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
env:
NODE_ENV: test
PASSWORD_SEED: test_password_seed
FILE_UPLOAD: none
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run type check
run: pnpm type-check
- name: Run linter
run: pnpm lint
- name: Run tests
run: pnpm test
- name: Build project
run: pnpm build
format-check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: latest
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22.x
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Check code formatting
run: |
pnpm format
if [ -n "$(git diff --name-only)" ]; then
echo "Code is not properly formatted. Please run 'pnpm format' and commit the changes."
git diff
exit 1
fi