Skip to content
Source
Sign inSign up
TanStack/charts
Open History to see the last commit

action.yml

43 lines1.4 KB

1name: Setup Charts
2description: Install the workspace and optionally install the browser runtime
3​
4inputs:
5 playwright:
6 description: Install the Chromium runtime used by browser checks
7 required: false
8 default: 'false'
9​
10runs:
11 using: composite
12 steps:
13 - name: Setup pnpm
14 uses: pnpm/action-setup@739bfe42ca9233c5e6aca07c1a25a9d34aca49b0 # v6.0.7
15​
16 - name: Setup Node
17 uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
18 with:
19 node-version-file: .nvmrc
20 cache: pnpm
21 cache-dependency-path: pnpm-lock.yaml
22​
23 - name: Install dependencies
24 shell: bash
25 run: pnpm install --frozen-lockfile
26​
27 - name: Restore Playwright
28 if: inputs.playwright == 'true'
29 id: playwright-cache
30 uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
31 with:
32 path: ~/.cache/ms-playwright
33 key: ${{ runner.os }}-${{ runner.arch }}-playwright-${{ hashFiles('node_modules/.pnpm/playwright-core@*/node_modules/playwright-core/browsers.json') }}
34​
35 - name: Install Chromium
36 if: inputs.playwright == 'true' && steps.playwright-cache.outputs.cache-hit != 'true'
37 shell: bash
38 run: pnpm exec playwright install --only-shell chromium
39​
40 - name: Install Chromium system dependencies
41 if: inputs.playwright == 'true'
42 shell: bash
43 run: pnpm exec playwright install-deps chromium