Skip to content

Commit 9081c90

Browse files
committed
Update github workflow
1 parent 8f93c96 commit 9081c90

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/pull-request.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ jobs:
3535
# if the workflow file was modified, then we rerun the entire job
3636
devserver: ${{ steps.filter.outputs.devserver || steps.filter.outputs.workflows }}
3737
# if the devserver needs to be tested bundles and tabs need to be rebuilt
38-
modules: ${{ steps.filter.outputs.tabs || steps.filter.outputs.bundles || steps.filter.outputs.workflows || steps.filter.outputs.devserver }}
38+
tabs: ${{ steps.filter.outputs.tabs || steps.filter.outputs.workflows || steps.filter.outputs.devserver }}
39+
bundles: ${{ steps.filter.outputs.bundles || steps.filter.outputs.workflows || steps.filter.outputs.devserver }}
3940
libraries: ${{ steps.filter.outputs.libraries || steps.filter.outputs.workflows }}
4041
docs: ${{ steps.filter.outputs.docs || steps.filter.outputs.workflows }}
41-
playwright: $${{ steps.filter.outputs.devserver || steps.filter.outputs.libraries || steps.filter.outputs.bundles }}
42+
playwright: $${{ steps.filter.outputs.devserver || steps.filter.outputs.libraries || steps.filter.outputs.tabs }}
4243

4344
test:
4445
name: Verify all tests pass and build success
@@ -77,12 +78,16 @@ jobs:
7778
run: yarn test:libs
7879

7980
- name: Build and run tsc for bundles and tabs
80-
if: needs.paths-filter.outputs.devserver == 'true'
81+
if: needs.paths-filter.outputs.bundles == 'true' || needs.paths-filter.outputs.tabs == 'true'
8182
run: yarn workspaces foreach -j 5 -ptW --from "./src/{bundles,tabs}/*" run build --tsc
8283

83-
- name: Test bundles and tabs
84-
if: needs.paths-filter.outputs.modules == 'true'
85-
run: yarn test:modules
84+
- name: Test bundles
85+
if: needs.paths-filter.outputs.bundles == 'true'
86+
run: yarn workspaces foreach -j 5 -ptW --from "./src/bundles/*" run test
87+
88+
- name: Test tabs
89+
if: needs.paths-filter.outputs.tabs == 'true'
90+
run: yarn workspaces foreach -j 5 -ptW --from "./src/tabs/*" run test
8691

8792
- name: Build manifest
8893
if: needs.paths-filter.outputs.devserver == 'true'

0 commit comments

Comments
 (0)