Skip to content

Update dag-simple example to use D3DagLayout #660

Update dag-simple example to use D3DagLayout

Update dag-simple example to use D3DagLayout #660

Workflow file for this run

name: test
on:
pull_request:
permissions:
contents: read
jobs:
test-node:
runs-on: ubuntu-latest
# Keep env simple. You don't need --openssl-legacy-provider for Node 20.
env:
NODE_ENV: test
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20' # ✅ match what Vite/Vitest expect
# ✅ Enable Corepack so the `packageManager` field is honored
- name: Enable Corepack / Yarn 4
run: |
corepack enable
corepack prepare [email protected] --activate
yarn -v
# ✅ Cache Yarn 4's compressed archives
- name: Cache Yarn 4 artifacts
uses: actions/cache@v4
with:
path: |
.yarn/cache
.pnp.* # if you use Plug’n’Play
.yarn/install-state.gz
key: yarn-cache-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
yarn-cache-${{ runner.os }}-
- name: Print versions
run: |
node -v
yarn -v
node -p "process.versions"
- name: Install deps
run: yarn --frozen-lockfile
# Sanity-check that Vite sees the root config (this MUST be true)
- name: Verify vite.config.ts presence
run: |
test -f vite.config.ts || (echo "vite.config.ts missing at repo root" && exit 1)
node -e "console.log('vite.config.ts exists, good')"
- name: Build packages
run: yarn build
- name: Run node tests
run: yarn test-node
- name: Cache Playwright browsers
uses: actions/cache@v4
with:
path: ~/.cache/ms-playwright
key: pw-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: pw-${{ runner.os }}-
- name: Install Playwright Chromium (only)
run: npx playwright install --with-deps chromium
- name: Run headless browser tests
run: yarn test-headless --reporter=verbose