Skip to content

Add validate workflow (#21) #2

Add validate workflow (#21)

Add validate workflow (#21) #2

Workflow file for this run

name: Validate
on:
push:
branches:
- 'main'
pull_request:
env:
NODE_VERSION: 20
PNPM_VERSION: 9
jobs:
validate:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout project
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: ${{ env.PNPM_VERSION }}
run_install: false
- name: Install dependencies
run: pnpm install
- name: Typecheck
run: pnpm typecheck
- name: Build
run: pnpm build