Skip to content

Add GitHub Actions workflow for build and test #1

Add GitHub Actions workflow for build and test

Add GitHub Actions workflow for build and test #1

Workflow file for this run

name: Build and Test
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
schedule:
- cron: '0 0 * * 0' # Run once a week on Sunday at midnight
jobs:
build-and-test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: 9.0.0
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
- name: Type Check
run: pnpm check-types
- name: Lint
run: pnpm lint