@@ -25,17 +25,20 @@ jobs:
2525 - 'devserver/**'
2626 libraries:
2727 - 'lib/**'
28- modules:
29- - src/{bundles,tabs}/**
28+ tabs:
29+ - src/tabs/**
30+ bundles:
31+ - src/bundles/**
3032 docs:
3133 - docs/**
3234 outputs :
3335 # if the workflow file was modified, then we rerun the entire job
3436 devserver : ${{ steps.filter.outputs.devserver || steps.filter.outputs.workflows }}
3537 # if the devserver needs to be tested bundles and tabs need to be rebuilt
36- modules : ${{ steps.filter.outputs.modules || steps.filter.outputs.workflows || steps.filter.outputs.devserver }}
38+ modules : ${{ steps.filter.outputs.tabs || steps.filter.outputs.bundles || steps.filter.outputs.workflows || steps.filter.outputs.devserver }}
3739 libraries : ${{ steps.filter.outputs.libraries || steps.filter.outputs.workflows }}
3840 docs : ${{ steps.filter.outputs.docs || steps.filter.outputs.workflows }}
41+ playwright : $${{ steps.filter.outputs.devserver || steps.filter.outputs.libraries || steps.filter.outputs.bundles }}
3942
4043 test :
4144 name : Verify all tests pass and build success
6164 - name : Install dependencies
6265 run : yarn install --immutable
6366
67+ - name : Install Playwright
68+ if : needs.paths-filter.outputs.playwright == 'true'
69+ run : yarn playwright install --with-deps
70+
6471 - name : Run tsc for libraries
6572 if : needs.paths-filter.outputs.libraries == 'true'
6673 run : yarn workspaces foreach -ptW --from "./lib/*" run tsc
7582
7683 - name : Test bundles and tabs
7784 if : needs.paths-filter.outputs.modules == 'true'
78- run : playwright install --with-deps && yarn test:modules
85+ run : yarn test:modules
7986
8087 - name : Build manifest
8188 if : needs.paths-filter.outputs.devserver == 'true'
0 commit comments