Skip to content

Add Vercel Cron

Add Vercel Cron #428

Workflow file for this run

name: Test and Build
on:
pull_request:
branches: [develop, main]
jobs:
tests:
if: "! contains(toJSON(github.event.commits.*.message), '[skip-ci]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 100
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- uses: pnpm/action-setup@v2
with:
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: node-cache-${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
node-cache-${{ runner.os }}-pnpm-
- name: Install dependencies
run: pnpm --version && pnpm install --frozen-lockfile
- name: Copy .env
run: cp .env-sample .env
- name: Run tests
run: |
pnpm tsc
pnpm eslint
pnpm test:ci