37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
# Copyright 2023 Signal Messenger, LLC
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
name: Stories
|
|
on:
|
|
push:
|
|
branches:
|
|
- development
|
|
- main
|
|
- '[0-9]+.[0-9]+.x'
|
|
pull_request:
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest-8-cores
|
|
timeout-minutes: 30
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '20.11.1'
|
|
cache: 'npm'
|
|
- name: Install global dependencies
|
|
run: npm install -g npm@10.2.5
|
|
- name: Cache Desktop node_modules
|
|
id: cache-desktop-modules
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: node_modules
|
|
key: ${{ runner.os }}-${{ hashFiles('package.json', 'package-lock.json', 'patches/**') }}
|
|
- name: Install Desktop node_modules
|
|
if: steps.cache-desktop-modules.outputs.cache-hit != 'true'
|
|
run: npm ci --legacy-peer-deps
|
|
env:
|
|
CHILD_CONCURRENCY: 1
|
|
NPM_CONFIG_LOGLEVEL: verbose
|
|
- run: npm run build:storybook
|
|
- run: npx playwright install chromium
|
|
- run: ./node_modules/.bin/run-p --race test:storybook:serve test:storybook:test
|