Skip to content

Add caching mechanism with Vercel deployment support #71

Add caching mechanism with Vercel deployment support

Add caching mechanism with Vercel deployment support #71

Workflow file for this run

name: CI
on:
push:
branches: [ main, add-caching ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
ci:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VITE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CRON_SECRET: test-secret
VITE_USE_CACHE: true
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'
cache: 'npm'
- name: Install dependencies
run: |
npm ci
npm install -D tsx
- name: Set up environment variables
run: |
echo "Environment variables set"
- name: Type check
run: npm run typecheck
- name: Lint
run: npm run lint
- name: Build
run: npm run build
- name: Test
run: npm run test