signal-desktop/.github/workflows/stories.yml

33 lines
901 B
YAML
Raw Normal View History

# 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:
2024-06-27 21:48:40 +00:00
- uses: actions/checkout@v4
- name: Setup node.js
uses: actions/setup-node@v4
with:
2024-06-27 21:48:40 +00:00
node-version-file: '.nvmrc'
2024-06-24 20:14:32 +00:00
cache: 'npm'
2024-06-27 21:48:40 +00:00
cache-dependency-path: 'package-lock.json'
- name: Install global dependencies
2024-06-24 20:14:32 +00:00
run: npm install -g npm@10.2.5
- name: Install Desktop node_modules
run: npm ci
env:
CHILD_CONCURRENCY: 1
NPM_CONFIG_LOGLEVEL: verbose
2024-06-24 20:14:32 +00:00
- run: npm run build:storybook
- run: npx playwright install chromium
2024-06-24 20:14:32 +00:00
- run: ./node_modules/.bin/run-p --race test:storybook:serve test:storybook:test