fix: trigger interface upgrade for all packages #533
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: validator | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- 'packages/interface/**' | |
- 'packages/core/**' | |
- 'packages/transport/**' | |
- 'packages/client/**' | |
- 'packages/validator/**' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'packages/interface/**' | |
- 'packages/core/**' | |
- 'packages/transport/**' | |
- 'packages/client/**' | |
- 'packages/validator/**' | |
- '.github/workflows/validator.yml' | |
jobs: | |
check: | |
name: Typecheck | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: | |
- 16 | |
project: | |
- validator | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup node ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
uses: pnpm/action-setup@v2.0.1 | |
id: pnpm-install | |
with: | |
version: 7 | |
run_install: true | |
- name: Typecheck | |
uses: gozala/typescript-error-reporter-action@v1.0.8 | |
with: | |
project: packages/${{matrix.project}}/tsconfig.json | |
test: | |
name: Test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node-version: | |
- 14 | |
- 16 | |
os: | |
- ubuntu-latest | |
- windows-latest | |
- macos-latest | |
project: | |
- validator | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
uses: pnpm/action-setup@v2.0.1 | |
id: pnpm-install | |
with: | |
version: 7 | |
run_install: true | |
- name: Test (Node) | |
run: pnpm run --if-present --dir packages/${{matrix.project}} test:node | |
- name: Test (Web) | |
run: pnpm run --if-present --dir packages/${{matrix.project}} test:web |