Skip to content

Use custom property values for interest delay properties (#1257) #3371

Use custom property values for interest delay properties (#1257)

Use custom property values for interest delay properties (#1257) #3371

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
permissions:
contents: read
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
basics:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
# Needed for tag history
fetch-depth: 0
- run: git fetch --tags
- name: Setup pnpm
uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
- name: Setup Node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 24
cache: 'pnpm'
- name: Install
run: pnpm install --frozen-lockfile
- name: Preflight (Typecheck, Lint, Tests)
env:
TEST_REPORTER: spec
run: pnpm run preflight
- name: Verify publish-skills (Dry Run)
run: pnpm --filter serving run publish-skills --dry-run
- name: Compare built (post-macro) guides
env:
BASE_REF: ${{ github.base_ref || github.event.repository.default_branch }}
run: |
pnpm --filter serving build
REPORT_OUTPUT_PATH=/tmp/built-guides-diff.md node serving/scripts/compare-built-guides.ts --base-ref "origin/${BASE_REF}"
if [ -f /tmp/built-guides-diff.md ]; then
cat /tmp/built-guides-diff.md >> $GITHUB_STEP_SUMMARY
fi
# Fail if any changes were written to any source files or generated untracked files
- run: git add -A && git diff --cached --exit-code
# TODO(paulirish): restore this after fixing:
# fatal: You are not currently on a branch. To push the history leading to the current (detached HEAD) state now, use git push origin HEAD:<name-of-remote-branch>
#
# - name: Generate guides diagram and commit
# run: |
# node guides/guide-features-diagram.mjs
# git config user.name "github-actions[bot]"
# git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
# git add guides/features-and-use-cases.md
browser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- run: git fetch --tags
- name: Setup pnpm
uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
- name: Setup Node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 24
cache: 'pnpm'
- name: Install
run: pnpm install --frozen-lockfile
- name: Get Playwright version
id: playwright-version
run: echo "version=$(pnpm list --filter eval-view --depth 0 playwright --json | jq -r '.[0].devDependencies.playwright.version')" >> $GITHUB_OUTPUT
- name: Cache Playwright Browsers
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
id: playwright-cache
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.version }}
- name: Install Playwright Browsers
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: pnpm run setup:playwright --with-deps
- name: Install Playwright System Dependencies
if: steps.playwright-cache.outputs.cache-hit == 'true'
run: pnpm --filter eval-view exec playwright install-deps
- name: Playwright E2E Tests
run: pnpm --filter eval-view run test:e2e
- name: Test Grader Calibration
# Ensuring playwright is happy
run: node bin/gd.ts dev guides/css/size-aware-styling/ --test-grader