File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -448,7 +448,7 @@ jobs:
448
448
DEPENDENCY_CACHE_KEY : ${{ needs.job_build.outputs.dependency_cache_key }}
449
449
450
450
- name : Run affected tests
451
- run : yarn test:pr:browser
451
+ run : yarn test:pr:browser --base=${{ github.base_ref }}
452
452
if : github.event_name == 'pull_request'
453
453
454
454
- name : Run all tests
@@ -542,7 +542,7 @@ jobs:
542
542
DEPENDENCY_CACHE_KEY : ${{ needs.job_build.outputs.dependency_cache_key }}
543
543
544
544
- name : Run affected tests
545
- run : yarn test:pr:node
545
+ run : yarn test:pr:node --base=${{ github.base_ref }}
546
546
if : github.event_name == 'pull_request'
547
547
env :
548
548
NODE_VERSION : ${{ matrix.node }}
Original file line number Diff line number Diff line change @@ -76,8 +76,12 @@ function runWithIgnores(skipPackages: string[] = []): void {
76
76
* Run affected tests, ignoring the given packages
77
77
*/
78
78
function runAffectedWithIgnores ( skipPackages : string [ ] = [ ] ) : void {
79
+ const additionalArgs = process . argv
80
+ . slice ( 2 )
81
+ . filter ( arg => arg !== '--affected' )
82
+ . join ( ' ' ) ;
79
83
const ignoreFlags = skipPackages . map ( dep => `--exclude="${ dep } "` ) . join ( ' ' ) ;
80
- run ( `yarn test:pr ${ ignoreFlags } ` ) ;
84
+ run ( `yarn test:pr ${ ignoreFlags } ${ additionalArgs } ` ) ;
81
85
}
82
86
83
87
/**
You can’t perform that action at this time.
0 commit comments