Skip to content

feat(docs): update readme to mention free Vercel Remote Cache #50

feat(docs): update readme to mention free Vercel Remote Cache

feat(docs): update readme to mention free Vercel Remote Cache #50

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
name: typecheck | lint | test
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: vercel
strategy:
matrix:
node-version: [16.x, 18.x, 20.x]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: pnpm/action-setup@v2.0.1
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> "$GITHUB_OUTPUT"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Run typecheck
run: pnpm typecheck
- name: Run lint
run: pnpm lint
- name: Run doctoc
run: pnpm doctoc && if [ -z "$(git status --porcelain)" ]; then echo "All docs up to date" && exit 0; else echo "Docs out of date, commit the result of \"pnpm doctoc\"" && exit 1; fi
- name: Run tests
run: pnpm test