2023-10-11 19:06:43 +00:00
|
|
|
# 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:
|
2024-06-27 20:25:36 +00:00
|
|
|
node-version: '20.14.0'
|
2024-06-24 20:14:32 +00:00
|
|
|
cache: 'npm'
|
2024-01-24 00:11:12 +00:00
|
|
|
- name: Install global dependencies
|
2024-06-24 20:14:32 +00:00
|
|
|
run: npm install -g npm@10.2.5
|
2023-12-09 00:56:44 +00:00
|
|
|
- name: Cache Desktop node_modules
|
|
|
|
id: cache-desktop-modules
|
|
|
|
uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
path: node_modules
|
2024-06-24 20:14:32 +00:00
|
|
|
key: ${{ runner.os }}-${{ hashFiles('package.json', 'package-lock.json', 'patches/**') }}
|
2023-12-09 00:56:44 +00:00
|
|
|
- name: Install Desktop node_modules
|
|
|
|
if: steps.cache-desktop-modules.outputs.cache-hit != 'true'
|
2024-06-25 02:59:26 +00:00
|
|
|
run: npm ci
|
2023-12-09 00:56:44 +00:00
|
|
|
env:
|
|
|
|
CHILD_CONCURRENCY: 1
|
|
|
|
NPM_CONFIG_LOGLEVEL: verbose
|
2024-06-24 20:14:32 +00:00
|
|
|
- run: npm run build:storybook
|
2023-12-09 00:56:44 +00:00
|
|
|
- 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
|