Skip to content

Commit

Permalink
Add validate workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Corb3nik committed Jan 3, 2025
1 parent 8b5f38e commit 511c6dd
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
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: Build
run: pnpm build

- name: Run tests
run: pnpm test

- name: Typecheck
run: pnpm typecheck

0 comments on commit 511c6dd

Please sign in to comment.