Skip to content

Commit

Permalink
ci: split test-misc and test-connect-misc
Browse files Browse the repository at this point in the history
  • Loading branch information
mroz22 authored and martykan committed Nov 21, 2024
1 parent 178ee7c commit b2dab19
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 30 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/test-connect-misc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "[Test] connect misc"

on:
schedule:
# Runs at midnight UTC every day at 01:00 AM CET
- cron: "0 0 * * *"
pull_request:
paths:
- ".github/workflows/test-connect-misc.yml"
workflow_dispatch:

jobs:
install-connect:
runs-on: ubuntu-latest
if: github.repository == 'trezor/trezor-suite'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true

- run: ./packages/connect/e2e/test-npm-install.sh beta
- run: ./packages/connect/e2e/test-npm-install.sh latest
- run: ./packages/connect/e2e/test-yarn-install.sh beta
- run: ./packages/connect/e2e/test-yarn-install.sh latest

test-protobuf:
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 @trezor/protobuf update:protobuf
- run: yarn workspace @trezor/protobuf update:schema
30 changes: 0 additions & 30 deletions .github/workflows/test-misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,6 @@ jobs:

- run: ./scripts/ci/find_duplicates.sh ./packages/suite-data/files ${{ matrix.extension }}

install-connect:
runs-on: ubuntu-latest
if: github.repository == 'trezor/trezor-suite'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true

- run: ./packages/connect/e2e/test-npm-install.sh beta
- run: ./packages/connect/e2e/test-npm-install.sh latest
- run: ./packages/connect/e2e/test-yarn-install.sh beta
- run: ./packages/connect/e2e/test-yarn-install.sh latest

test-unit:
runs-on: ubuntu-latest
if: github.repository == 'trezor/trezor-suite'
Expand All @@ -82,19 +68,3 @@ jobs:
- run: yarn install --immutable
- run: yarn message-system-sign-config
- run: yarn test:unit

test-protobuf:
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 @trezor/protobuf update:protobuf
- run: yarn workspace @trezor/protobuf update:schema

0 comments on commit b2dab19

Please sign in to comment.