File tree 3 files changed +21
-9
lines changed
3 files changed +21
-9
lines changed Original file line number Diff line number Diff line change @@ -46,12 +46,12 @@ jobs:
46
46
47
47
steps :
48
48
- uses : actions/checkout@v4
49
+ - name : Work around windows short path alias # https://github.com/actions/runner-images/issues/712
50
+ if : runner.os == 'Windows'
51
+ run : new-item D:\temp -ItemType Directory; new-item D:\.pnpm -ItemType Directory; echo "TEMP=D:\temp" >> $env:GITHUB_ENV; echo "PNPM_HOME=D:\.pnpm" >> $env:GITHUB_ENV
49
52
- uses : ./.github/actions/setup
50
53
with :
51
54
use_lockfile : false
52
- - name : Work around windows short path alias # https://github.com/actions/runner-images/issues/712
53
- if : runner.os == 'Windows'
54
- run : echo "TEMP=$env:USERPROFILE\AppData\Local\Temp" >> $env:GITHUB_ENV
55
55
- name : suite
56
56
run : ${{ matrix.command }}
57
57
working-directory : ${{ matrix.dir }}
Original file line number Diff line number Diff line change @@ -20,12 +20,6 @@ async function githubMatrix() {
20
20
let { include : suites } = JSON . parse ( stdout ) as { include : { name : string ; command : string } [ ] ; name : string [ ] } ;
21
21
22
22
let include = [
23
- ...suites . map ( s => ( {
24
- name : `${ s . name } ubuntu` ,
25
- os : 'ubuntu' ,
26
- command : s . command ,
27
- dir,
28
- } ) ) ,
29
23
...suites
30
24
. filter ( s => s . name !== 'jest-suites' ) // TODO: jest tests do not work under windows yet
31
25
. filter ( s => ! s . name . includes ( 'watch-mode' ) ) // TODO: watch tests are far too slow on windows right now
Original file line number Diff line number Diff line change 1
1
import { Scenarios , Project } from 'scenario-tester' ;
2
2
import { dirname } from 'path' ;
3
+ import fs from 'fs-extra' ;
4
+
5
+ Project . prototype [ 'hardLinkFile' ] = function ( source : string , destination : string ) {
6
+ try {
7
+ fs . linkSync ( source , destination ) ;
8
+ //const command = `New-Item -ItemType HardLink -Path ${destination} -Value ${source}`;
9
+ //execSync(`powershell.exe -command "${command}"`);
10
+ } catch ( e ) {
11
+ //const cmd = `fsutil hardlink list ${source}`;
12
+ //console.log(execSync(cmd).toString());
13
+ console . error ( e ) ;
14
+ console . log ( fs . realpathSync ( dirname ( destination ) ) ) ;
15
+ console . log ( map [ source ] ) ;
16
+ console . log ( fs . readdirSync ( dirname ( source ) ) ) ;
17
+ console . log ( fs . readdirSync ( dirname ( destination ) ) ) ;
18
+ fs . copyFileSync ( source , destination , fs . constants . COPYFILE_FICLONE | fs . constants . COPYFILE_EXCL ) ;
19
+ }
20
+ } ;
3
21
4
22
export async function lts_3_28 ( project : Project ) {
5
23
project . linkDevDependency ( 'ember-source' , { baseDir : __dirname , resolveName : 'ember-source' } ) ;
You can’t perform that action at this time.
0 commit comments