mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-09-28 07:57:21 +01:00
58 lines
1.6 KiB
YAML
58 lines
1.6 KiB
YAML
# Copyright 2025 Signal Messenger, LLC
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
name: ICU Book
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
tags:
|
|
- 'v[0-9]+.[0-9]+.*'
|
|
jobs:
|
|
build-icu-book:
|
|
name: Build ICU Book
|
|
runs-on: ubuntu-latest-8-cores
|
|
if: ${{ github.repository == 'signalapp/Signal-Desktop-Private' }}
|
|
timeout-minutes: 30
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
|
- name: Setup environment
|
|
uses: ./.github/actions/setup
|
|
with:
|
|
install-playwright: true
|
|
|
|
- name: Build storybook
|
|
run: pnpm run build:storybook
|
|
|
|
- id: storybook-server
|
|
name: Serve storybook
|
|
background: true
|
|
run: pnpm run test:storybook:serve
|
|
|
|
- name: Run storybook tests
|
|
run: pnpm run test:storybook:test
|
|
env:
|
|
ARTIFACTS_DIR: stories
|
|
|
|
- name: Stop storybook server
|
|
cancel: storybook-server
|
|
|
|
- name: Build stories ICU book
|
|
run: node scripts/compile-stories-icu-lookup.mjs stories
|
|
|
|
- name: Upload test artifacts
|
|
if: github.event_name == 'workflow_dispatch'
|
|
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
|
|
with:
|
|
name: desktop-test-icu
|
|
path: stories
|
|
compression-level: 9
|
|
|
|
- name: Upload release artifacts
|
|
if: github.event_name != 'workflow_dispatch'
|
|
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
|
|
with:
|
|
name: desktop-${{ github.ref_name }}-icu
|
|
path: stories
|
|
compression-level: 9
|