mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-20 14:18:16 +01:00
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
name: Validation check
|
|
|
|
on: [pull_request]
|
|
|
|
jobs:
|
|
type-check_and_lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: "true"
|
|
- name: Install node and yarn
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version-file: ".nvmrc"
|
|
cache: "yarn"
|
|
|
|
- name: install yarn
|
|
run: npm install -g yarn
|
|
- name: deduplicate deps
|
|
run: npx yarn-deduplicate --list --fail
|
|
- name: install deps
|
|
run: yarn
|
|
- name: check code formatting
|
|
run: yarn format:verify
|
|
- name: verify TS project references
|
|
run: yarn verify-project-references
|
|
- run: git status
|
|
- name: build libs
|
|
run: yarn build:libs
|
|
- run: git status
|
|
- name: type check
|
|
run: yarn type-check
|
|
- run: git status
|
|
- name: lint
|
|
run: yarn lint
|
|
- name: msg-system config validation
|
|
run: yarn workspace @trezor/suite-data msg-system-validate-config
|
|
- name: unit tests
|
|
run: lerna run --stream test:unit
|