mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-20 22:28:30 +01:00
52 lines
1.5 KiB
YAML
52 lines
1.5 KiB
YAML
name: Validation check
|
|
|
|
on: [pull_request]
|
|
|
|
env:
|
|
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_GHACTIONS_TOKEN }}
|
|
|
|
jobs:
|
|
type-check_and_lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: "true"
|
|
fetch-depth: 0
|
|
- name: Install node and yarn
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version-file: ".nvmrc"
|
|
- name: Get yarn cache directory path
|
|
id: yarn-cache-dir-path
|
|
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
|
|
- name: Restore yarn cache
|
|
uses: actions/cache@v3
|
|
id: yarn-cache
|
|
with:
|
|
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
|
key: yarn-cache-folder-${{ hashFiles('**/yarn.lock', '.yarnrc.yml') }}
|
|
restore-keys: |
|
|
yarn-cache-folder-
|
|
- name: install deps
|
|
run: yarn --immutable
|
|
- name: check files for correct formatting
|
|
run: yarn nx format:check
|
|
- name: verify TS project references
|
|
run: yarn verify-project-references
|
|
- name: msg-system config validation
|
|
run: yarn workspace @trezor/message-system validate-config
|
|
- run: git status
|
|
- name: build libs
|
|
run: yarn nx:build:libs
|
|
- run: git status
|
|
- name: type check
|
|
run: yarn nx:type-check
|
|
- run: git status
|
|
- name: lint js
|
|
run: yarn nx:lint:js
|
|
- name: lint styles
|
|
run: yarn nx:lint:styles
|
|
- name: unit tests
|
|
run: yarn nx:test-unit
|