Files
trezor-suite/.github/workflows/test-misc.yml
2026-02-05 10:57:48 +01:00

125 lines
3.2 KiB
YAML

name: "[Test] misc"
on:
schedule:
# Runs at midnight UTC every day at 01:00 AM CET
- cron: "0 0 * * *"
pull_request:
paths:
- ".github/workflows/test-misc.yml"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
translations-unused:
runs-on: ubuntu-latest
if: github.repository == 'trezor/trezor-suite'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- run: yarn install --immutable
- run: yarn workspace @suite/intl translations:list-unused
media-duplicates:
runs-on: ubuntu-latest
if: github.repository == 'trezor/trezor-suite'
strategy:
fail-fast: false
matrix:
extension: [".png", ".jpg", ".mp4", ".webm", ".svg"]
steps:
- name: Checkout
uses: actions/checkout@v4
- run: ./scripts/ci/find_duplicates.sh ./packages/suite-data/files ${{ matrix.extension }}
test-madge-circular-imports:
runs-on: ubuntu-latest
if: github.repository == 'trezor/trezor-suite'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- run: yarn install --immutable
- run: ./scripts/circular-dependencies/check-circular-dependencies.sh
test-unit:
runs-on: ubuntu-latest
if: github.repository == 'trezor/trezor-suite'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- run: yarn install --immutable
- run: yarn message-system-sign-config
- name: Unit Tests - Suite, Connect, Common
run: yarn test:unit --exclude='@suite-native/*'
- name: Unit Tests - Native
run: yarn test:unit --exclude='@trezor/*,@suite/*,@suite-common/*'
test-unit-windows:
runs-on: windows-latest
if: github.repository == 'trezor/trezor-suite'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- run: yarn install --immutable
- run: yarn workspace @trezor/node-utils test:unit
utility-scripts:
runs-on: ubuntu-latest
if: github.repository == 'trezor/trezor-suite'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- run: yarn install --immutable
- run: yarn generate-package @trezor/meow-package
- run: rm -rf packages/meow-package
components-test-img-paths-exist:
runs-on: ubuntu-latest
if: github.repository == 'trezor/trezor-suite'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- run: yarn install --immutable
- run: yarn tsx ./packages/components/scripts/test-img-paths-exist.ts