Skip to content

Commit 9f7bebe

Browse files
committed
WIP: Create workspaces and move tests & scripts
1 parent 8a6f858 commit 9f7bebe

123 files changed

Lines changed: 15429 additions & 11372 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/CreateGWRelease.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ jobs:
2929
node-version-file: ".nvmrc"
3030

3131
- name: "Installing dependencies"
32-
run: npm install
32+
run: pnpm --dir packages/release-tools install
3333

3434
- name: "Creating GW release and MR"
35-
run: "npm run release:gw"
35+
run: "pnpm --dir packages/release-tools run release:gw"
3636
env:
3737
GH_USERNAME: ${{ secrets.GH_USERNAME }}
3838
GH_EMAIL: ${{ secrets.GH_EMAIL }}

.github/workflows/CreatePWTRelease.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ jobs:
2929
node-version-file: ".nvmrc"
3030

3131
- name: "Installing dependencies"
32-
run: npm install
32+
run: pnpm --dir packages/release-tools install
3333

3434
- name: "Creating PWT release and MR"
35-
run: "npm run release:pwt"
35+
run: "pnpm --dir packages/release-tools run release:pwt"
3636
env:
3737
GH_USERNAME: ${{ secrets.GH_USERNAME }}
3838
GH_EMAIL: ${{ secrets.GH_EMAIL }}

.github/workflows/TestPWTCommands.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ jobs:
2727
with:
2828
filters: |
2929
packages:
30-
- 'packages/**/*'
30+
- 'packages/generator-widget/*'
31+
- 'packages/pluggable-widgets-tools/*'
3132
tests:
32-
- 'tests/**/*'
33+
- 'packages/command-tests/*'
3334
env:
3435
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3536

@@ -49,7 +50,7 @@ jobs:
4950
- name: "Installing dependencies"
5051
working-directory: ./
5152
if: steps.filter.outputs.packages == 'true' || steps.filter.outputs.tests == 'true'
52-
run: npm install
53+
run: pnpm --dir packages/command-tests install
5354

5455
- name: Increase number of watchers
5556
if: (steps.filter.outputs.packages == 'true' || steps.filter.outputs.tests == 'true') && startsWith(matrix.os, 'ubuntu')
@@ -58,4 +59,4 @@ jobs:
5859
- name: "Testing PWT commands"
5960
working-directory: ./
6061
if: steps.filter.outputs.packages == 'true' || steps.filter.outputs.tests == 'true'
61-
run: npm run test:pwt:commands
62+
run: pnpm --dir packages/command-tests test

.github/workflows/UnitTests.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
env:
2929
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3030

31+
# TODO: Do we need to do anything special for pnpm caching?
3132
- name: "Defining cache"
3233
uses: actions/cache@d4323d4df104b026a6aa633fdb11d772146be0bf # v4
3334
env:
@@ -44,19 +45,20 @@ jobs:
4445
- name: "Installing dependencies"
4546
working-directory: ./
4647
if: steps.filter.outputs.packages == 'true'
47-
run: npm install
48+
run: pnpm install
4849

50+
# TODO: Can we manage this centrally with pnpm?
4951
- name: "Running pluggable-widgets-tools unit tests"
5052
working-directory: ./packages/pluggable-widgets-tools
5153
if: steps.filter.outputs.packages == 'true'
52-
run: npm run test
54+
run: pnpm test
5355

5456
- name: "Running generator-widget unit tests"
5557
working-directory: ./packages/generator-widget
5658
if: steps.filter.outputs.packages == 'true'
57-
run: npm run test
59+
run: pnpm test
5860

5961
- name: "Linting generator-widget"
6062
working-directory: ./packages/generator-widget
6163
if: steps.filter.outputs.packages == 'true'
62-
run: npm run lint
64+
run: pnpm run lint

0 commit comments

Comments
 (0)