Transition to Yarn Workspaces #1290
Workflow file for this run
This file contains hidden or 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: 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: Validate Constraints | |
| run: yarn constraints | |
| - 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 build:modules --tsc --lint | |
| - 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 |