Skip to content

Commit 01fde5e

Browse files
patricklxGit Online Helper
authored and
Git Online Helper
committed
try a
patch only win fix fix fix fix fix try fix skip Update scenarios.ts fix Update scenarios.ts Update scenarios.ts fix fix log Update scenarios.ts fix Update scenarios.ts Update scenarios.ts retry fix fix too long fix use Powershell Update scenarios.ts log Update scenarios.ts Update scenarios.ts Update scenarios.ts Update scenarios.ts Update scenarios.ts Update scenarios.ts fix Update scenarios.ts logs Update scenarios.ts Update scenarios.ts log Update scenarios.ts fix
1 parent 3734d9f commit 01fde5e

File tree

3 files changed

+21
-9
lines changed

3 files changed

+21
-9
lines changed

.github/workflows/ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ jobs:
4646

4747
steps:
4848
- 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
4952
- uses: ./.github/actions/setup
5053
with:
5154
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
5555
- name: suite
5656
run: ${{ matrix.command }}
5757
working-directory: ${{ matrix.dir }}

test-packages/support/suite-setup-util.ts

-6
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@ async function githubMatrix() {
2020
let { include: suites } = JSON.parse(stdout) as { include: { name: string; command: string }[]; name: string[] };
2121

2222
let include = [
23-
...suites.map(s => ({
24-
name: `${s.name} ubuntu`,
25-
os: 'ubuntu',
26-
command: s.command,
27-
dir,
28-
})),
2923
...suites
3024
.filter(s => s.name !== 'jest-suites') // TODO: jest tests do not work under windows yet
3125
.filter(s => !s.name.includes('watch-mode')) // TODO: watch tests are far too slow on windows right now

tests/scenarios/scenarios.ts

+18
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
import { Scenarios, Project } from 'scenario-tester';
22
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+
};
321

422
export async function lts_3_28(project: Project) {
523
project.linkDevDependency('ember-source', { baseDir: __dirname, resolveName: 'ember-source' });

0 commit comments

Comments
 (0)