Skip to content

Library: the library is written into the page, not fetched after it #329

Library: the library is written into the page, not fetched after it

Library: the library is written into the page, not fetched after it #329

name: Pull request type and issue check
on:
pull_request:
branches:
- dev # staging
- main # production
# Also run on pushes to dev so the yarn cache is saved on the default
# branch. Actions caches are only restored from the same ref or the
# default branch, so a cache saved by one pull request never helps the
# next one; the runs for #206 and #207 each spent 61s re-downloading.
push:
branches:
- dev
jobs:
type-check:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
# Yarn's download cache is keyed on yarn.lock, so a cache hit only
# skips the network fetch. Linking and the checks themselves still
# run on every pull request.
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20.19.0'
cache: yarn
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Type Check
run: yarn tsc --noEmit
- name: Library regression guards
run: yarn check:library