File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ jobs:
169169
170170 test-napi :
171171 name : Test NAPI
172- runs-on : ubuntu -latest
172+ runs-on : windows -latest
173173 steps :
174174 - uses : taiki-e/checkout-action@b13d20b7cda4e2f325ef19895128f7ff735c0b3d # v1.3.1
175175 - uses : dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
Original file line number Diff line number Diff line change @@ -92,10 +92,10 @@ function normalizeStdout(stdout: string): string {
9292 match = line . match ( / ^ ( \s * \| \s + F i l e p a t h : ) ( .+ ) $ / ) ;
9393 if ( match ) {
9494 const [ , preamble , path ] = match ;
95- if ( path . startsWith ( REPO_ROOT_PATH ) ) return [ `${ preamble } <root>/${ path . slice ( REPO_ROOT_PATH . length ) } ` ] ;
95+ if ( path . startsWith ( REPO_ROOT_PATH ) ) return [ `${ preamble } <root>/${ path . slice ( REPO_ROOT_PATH . length ) . replace ( / \\ / g , '/' ) } ` ] ;
9696 }
9797 }
98- if ( line . startsWith ( REPO_ROOT_PATH ) ) line = `<root>/${ line . slice ( REPO_ROOT_PATH . length ) } ` ;
98+ if ( line . startsWith ( REPO_ROOT_PATH ) ) line = `<root>/${ line . slice ( REPO_ROOT_PATH . length ) . replace ( / \\ / g , '/' ) } ` ;
9999 return [ line ] ;
100100 } ) ;
101101
You can’t perform that action at this time.
0 commit comments