fix: add return types #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test and Deploy | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
paths: | |
- api/** | |
- lib/** | |
- test/** | |
- babel.config.json | |
- jest.config.json | |
- package.json | |
- pnpm-lock.yaml | |
- tsconfig.json | |
- vercel.json | |
jobs: | |
test_and_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout current commit | |
uses: actions/checkout@v3 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Setup Node.js v22 environment | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: pnpm | |
- name: Install Node dependencies | |
run: pnpm install | |
- name: Run type checks | |
run: pnpm type-check | |
- name: Run unit tests | |
run: pnpm test | |
- name: Deploy to Vercel | |
uses: amondnet/vercel-action@v25 | |
with: | |
vercel-token: ${{ secrets.VERCEL_TOKEN }} | |
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }} | |
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }} | |
vercel-args: --prod |