mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-02 08:13:37 +01:00
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Scott Nonnenberg <scott@signal.org>
51 lines
1.7 KiB
YAML
51 lines
1.7 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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4
|
|
- name: Setup node.js
|
|
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
|
|
with:
|
|
node-version-file: '.nvmrc'
|
|
cache: 'pnpm'
|
|
cache-dependency-path: 'pnpm-lock.yaml'
|
|
- name: Cache .electron-gyp
|
|
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
|
|
with:
|
|
path: ~/.electron-gyp
|
|
key: electron-gyp-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}
|
|
|
|
# - name: Setup sccache
|
|
# uses: mozilla-actions/sccache-action@054db53350805f83040bf3e6e9b8cf5a139aa7c9 # v0.0.7
|
|
# - name: Restore sccache
|
|
# uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
|
|
# id: cache-sccache
|
|
# with:
|
|
# path: ${{ env.SCCACHE_PATH }}
|
|
# key: sccache-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml', 'patches/**') }}
|
|
|
|
- name: Install Desktop node_modules
|
|
run: pnpm install
|
|
env:
|
|
# CC: sccache gcc
|
|
# CXX: sccache g++
|
|
# SCCACHE_GHA_ENABLED: "true"
|
|
NPM_CONFIG_LOGLEVEL: verbose
|
|
|
|
- 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
|