mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-03 14:51:18 +01:00
Use pnpm
This commit is contained in:
31
.github/workflows/stories.yml
vendored
31
.github/workflows/stories.yml
vendored
@@ -14,19 +14,34 @@ jobs:
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 10.3.0
|
||||
- name: Setup node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
cache: 'npm'
|
||||
cache-dependency-path: 'package-lock.json'
|
||||
- name: Install global dependencies
|
||||
run: npm install -g npm@10.2.5
|
||||
cache: 'pnpm'
|
||||
cache-dependency-path: 'pnpm-lock.yaml'
|
||||
|
||||
- name: Setup sccache
|
||||
uses: mozilla-actions/sccache-action@v0.0.7
|
||||
- name: Restore sccache
|
||||
uses: actions/cache@v4
|
||||
id: cache-sccache
|
||||
with:
|
||||
path: ${{ env.SCCACHE_PATH }}
|
||||
key: sccache-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml', 'patches/**') }}
|
||||
|
||||
- name: Install Desktop node_modules
|
||||
run: npm ci
|
||||
run: pnpm install
|
||||
env:
|
||||
CHILD_CONCURRENCY: 1
|
||||
CC: sccache gcc
|
||||
CXX: sccache g++
|
||||
SCCACHE_GHA_ENABLED: "true"
|
||||
NPM_CONFIG_LOGLEVEL: verbose
|
||||
- run: npm run build:storybook
|
||||
- run: npx playwright install chromium
|
||||
|
||||
- run: pnpm run build:storybook
|
||||
- run: ./node_modules/.bin/playwright install chromium
|
||||
- run: ./node_modules/.bin/run-p --race test:storybook:serve test:storybook:test
|
||||
|
||||
Reference in New Issue
Block a user