mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-08 00:07:58 +01:00
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
name: "Reusable Build Suite Desktop for E2E tests"
|
|
on:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
build-desktop:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ github.event.pull_request.head.sha || github.sha }}
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: ".nvmrc"
|
|
cache: yarn
|
|
|
|
- name: Install dependencies, build libs
|
|
shell: bash
|
|
run: |
|
|
yarn install --immutable
|
|
yarn message-system-sign-config
|
|
yarn workspace @trezor/suite-data build:lib
|
|
yarn workspace @trezor/transport-bridge build:lib
|
|
|
|
- name: Build Electron app.js for tests
|
|
shell: bash
|
|
env:
|
|
TEST_BUILD: "true"
|
|
run: |
|
|
yarn workspace @trezor/suite-desktop build:app
|
|
yarn workspace @trezor/suite-desktop build:ui
|
|
|
|
- name: Compress build artifacts
|
|
shell: bash
|
|
run: tar -czf app-build.tar.gz -C ${{ github.workspace }}/packages/suite-desktop build dist
|
|
|
|
- name: Upload build artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: desktop-app-build-e2e
|
|
path: app-build.tar.gz
|
|
retention-days: 7
|