Skip to content

Commit

Permalink
wip special test
Browse files Browse the repository at this point in the history
  • Loading branch information
martykan committed Feb 11, 2025
1 parent 5932ddd commit ad6b520
Showing 1 changed file with 10 additions and 111 deletions.
121 changes: 10 additions & 111 deletions .github/workflows/check-code-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,49 +33,8 @@ jobs:
- name: Install deps
run: |
yarn --immutable --mode=skip-build
type-check:
name: Type Checking
needs: setup-and-cache
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: "Checkout branches for Nx"
uses: ./.github/actions/nx-checkout
- name: "Minimal yarn install"
uses: ./.github/actions/minimal-yarn-install
- name: Type Check
run: yarn nx:type-check --output-style=stream

lint:
name: Linting and formatting
needs: setup-and-cache
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: "Checkout branches for Nx"
uses: ./.github/actions/nx-checkout
- name: "Minimal yarn install"
uses: ./.github/actions/minimal-yarn-install

- name: ESlint Cache
uses: actions/cache@v4
with:
path: |
**/.eslintcache
!**/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/.eslintrc.js') }}
- name: Lint JS
run: yarn lint:js --cache-strategy content
- name: Lint Styles
run: yarn nx:lint:styles --output-style=stream

unit-tests:
name: Unit Tests
name: Problematic Unit Test
needs: setup-and-cache
runs-on: ubuntu-latest
timeout-minutes: 15
Expand All @@ -88,73 +47,13 @@ jobs:
uses: ./.github/actions/nx-checkout
- name: "Minimal yarn install"
uses: ./.github/actions/minimal-yarn-install
- name: Build libs
run: yarn build:libs
- name: Unit Tests
run: yarn nx:test-unit --output-style=stream

build-libs-for-publishing:
name: "Build libs for publishing"
needs: setup-and-cache
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: "Checkout branches for Nx"
uses: ./.github/actions/nx-checkout
- name: "Minimal yarn install"
uses: ./.github/actions/minimal-yarn-install
- name: Build Libs
run: yarn nx:build:libs --output-style=stream

other-checks:
name: Other Checks
needs: setup-and-cache
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: "Checkout branches for Nx"
uses: ./.github/actions/nx-checkout
- name: "Minimal yarn install"
uses: ./.github/actions/minimal-yarn-install
- name: Check Files for Correct Formatting
run: yarn nx format:check
- name: Verify TS Project References
run: yarn verify-project-references
- name: Detect unused dependencies
run: yarn depcheck
- name: Yarn Dedupe check
run: yarn dedupe --check
- name: Check dependency domain lists
run: ./scripts/ci/list-missing-dependencies.sh
- name: Verify Workspace Resolutions
run: yarn check-workspace-resolutions
- name: Msg-system Config Validation
run: yarn workspace @suite-common/message-system validate-config
- name: Translation Duplicates
run: yarn workspace @trezor/suite translations:list-duplicates

releases-revision-checks:
name: Releases revision Checks
needs: setup-and-cache
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: "Checkout branches for Nx"
uses: ./.github/actions/nx-checkout
- name: "Minimal yarn install"
uses: ./.github/actions/minimal-yarn-install

- name: Check releases.json files changes
uses: dorny/paths-filter@v3
id: changes
with:
filters: |
releases-json:
- 'packages/connect-common/files/firmware/t1b1/releases.json'
- 'packages/connect-common/files/firmware/t2t1/releases.json'
if: steps.changes.outputs.releases-json == 'true'
- name: Check releases.json revisions
run: yarn workspace @trezor/connect-common validate-releases.json
run: yarn workspace @trezor/suite test:unit useSendForm.test.tsx
- name: Unit Tests x2
run: yarn workspace @trezor/suite test:unit useSendForm.test.tsx
- name: Unit Tests x3
run: yarn workspace @trezor/suite test:unit useSendForm.test.tsx
- name: Unit Tests x4
run: yarn workspace @trezor/suite test:unit useSendForm.test.tsx

0 comments on commit ad6b520

Please sign in to comment.