Skip to content

Transition to Yarn Workspaces #1299

Transition to Yarn Workspaces

Transition to Yarn Workspaces #1299

Workflow file for this run

name: on-pull-request
on:
pull_request:
branches:
- master
jobs:
test:
name: Verify all tests pass and build success
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v4
with:
submodules: recursive
- name: Enable Corepack
run: corepack enable
- name: Use Node.js 💻
uses: actions/setup-node@v4
with:
node-version: 22
cache: yarn
- name: Install dependencies
run: yarn install --immutable
- name: Run tsc for libraries
run: yarn workspaces foreach -ptW --from "./lib/*" run tsc
- name: Run lint for libraries
run: yarn eslint lib
- name: Run test for libraries
run: yarn test:libs
- name: Build, lint and run tsc for bundles and tabs
run: yarn workspaces foreach -ptW --from "./src/{bundles,tsc}/*" run build --tsc --lint
- name: Lint bundles and tabs
run: yarn lint:modules
- name: Test bundles and tabs
run: yarn test:modules
- name: Run tsc for Dev Server
run: yarn tsc:devserver
- name: Run Lint for Dev Server
run: yarn eslint devserver
- name: Test Dev Server
run: yarn test:devserver