Skip to content

Commit a5a7edd

Browse files
test: normalize provider prompts across platforms
1 parent 6c32ed7 commit a5a7edd

2 files changed

Lines changed: 1 addition & 19 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -35,26 +35,8 @@ jobs:
3535
working-directory: global-template/docgen
3636
run: npm run check
3737
- name: Unit and integration tests
38-
if: runner.os != 'Windows'
3938
working-directory: global-template/docgen
4039
run: npm test
41-
- name: Unit and integration tests with diagnostics
42-
if: runner.os == 'Windows'
43-
shell: pwsh
44-
working-directory: global-template/docgen
45-
run: |
46-
$output = & npm test 2>&1
47-
$code = $LASTEXITCODE
48-
$output | Tee-Object -FilePath windows-test-output.txt
49-
exit $code
50-
- name: Upload Windows test diagnostics
51-
if: always() && runner.os == 'Windows'
52-
uses: actions/upload-artifact@v4
53-
with:
54-
name: windows-test-output
55-
if-no-files-found: error
56-
retention-days: 1
57-
path: global-template/docgen/windows-test-output.txt
5840
- name: Installer dry run
5941
run: node install.mjs --dry-run --no-link-cli
6042
- name: Upload exact CI source

global-template/docgen/test/fixtures/fake-provider.mjs

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if (!Number.isFinite(maxTurns) || maxTurns < 30) {
99
process.exit(8);
1010
}
1111

12-
const prompt = fs.readFileSync(0, 'utf8');
12+
const prompt = fs.readFileSync(0, 'utf8').replace(/\r\n?/g, '\n');
1313
const stage = process.env.DOCGEN_STAGE;
1414
const cwd = process.cwd();
1515
const tick = String.fromCharCode(96);

0 commit comments

Comments
 (0)