fix(repo): fix windows nightly runs (#16765)
This commit is contained in:
parent
8484a8ea16
commit
68ae304cda
26
.github/workflows/e2e-windows.yml
vendored
26
.github/workflows/e2e-windows.yml
vendored
@ -30,9 +30,11 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install PNPM
|
- uses: pnpm/action-setup@v2
|
||||||
run: |
|
name: Install pnpm
|
||||||
npm install -g @pnpm/exe@8.3.1
|
with:
|
||||||
|
version: 8.3.1
|
||||||
|
run_install: false
|
||||||
|
|
||||||
- name: Set node
|
- name: Set node
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
@ -49,7 +51,6 @@ jobs:
|
|||||||
key: ${{ runner.os }}-modules-${{ matrix.node_version }}-${{ github.run_id }}
|
key: ${{ runner.os }}-modules-${{ matrix.node_version }}-${{ github.run_id }}
|
||||||
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
if: steps.cache-modules.outputs.cache-hit != 'true'
|
|
||||||
run: pnpm install --frozen-lockfile
|
run: pnpm install --frozen-lockfile
|
||||||
|
|
||||||
- name: Cache Cypress
|
- name: Cache Cypress
|
||||||
@ -90,7 +91,7 @@ jobs:
|
|||||||
- e2e-node
|
- e2e-node
|
||||||
- e2e-nx-init
|
- e2e-nx-init
|
||||||
- e2e-nx-misc
|
- e2e-nx-misc
|
||||||
- e2e-nx-plugin
|
- e2e-plugin
|
||||||
- e2e-nx-run
|
- e2e-nx-run
|
||||||
- e2e-react-core
|
- e2e-react-core
|
||||||
- e2e-react-extensions
|
- e2e-react-extensions
|
||||||
@ -128,7 +129,7 @@ jobs:
|
|||||||
codeowners: 'S04SYHYKGNP'
|
codeowners: 'S04SYHYKGNP'
|
||||||
- project: e2e-nx-misc
|
- project: e2e-nx-misc
|
||||||
codeowners: 'S04SYHYKGNP'
|
codeowners: 'S04SYHYKGNP'
|
||||||
- project: e2e-nx-plugin
|
- project: e2e-plugin
|
||||||
codeowners: 'S04SYHYKGNP'
|
codeowners: 'S04SYHYKGNP'
|
||||||
- project: e2e-nx-run
|
- project: e2e-nx-run
|
||||||
codeowners: 'S04SYHYKGNP'
|
codeowners: 'S04SYHYKGNP'
|
||||||
@ -177,7 +178,7 @@ jobs:
|
|||||||
- node_version: 16
|
- node_version: 16
|
||||||
project: e2e-nx-misc
|
project: e2e-nx-misc
|
||||||
- node_version: 16
|
- node_version: 16
|
||||||
project: e2e-nx-plugin
|
project: e2e-plugin
|
||||||
- node_version: 16
|
- node_version: 16
|
||||||
project: e2e-lerna-smoke-tests
|
project: e2e-lerna-smoke-tests
|
||||||
- node_version: 16
|
- node_version: 16
|
||||||
@ -219,7 +220,7 @@ jobs:
|
|||||||
- node_version: 19
|
- node_version: 19
|
||||||
project: e2e-nx-misc
|
project: e2e-nx-misc
|
||||||
- node_version: 19
|
- node_version: 19
|
||||||
project: e2e-nx-plugin
|
project: e2e-plugin
|
||||||
- node_version: 19
|
- node_version: 19
|
||||||
project: e2e-lerna-smoke-tests
|
project: e2e-lerna-smoke-tests
|
||||||
- node_version: 19
|
- node_version: 19
|
||||||
@ -248,9 +249,11 @@ jobs:
|
|||||||
- name: Prepare dir for output
|
- name: Prepare dir for output
|
||||||
run: mkdir -p outputs
|
run: mkdir -p outputs
|
||||||
|
|
||||||
- name: Install PNPM
|
- uses: pnpm/action-setup@v2
|
||||||
run: |
|
name: Install pnpm
|
||||||
npm install -g @pnpm/exe@8.3.1
|
with:
|
||||||
|
version: 8.3.1
|
||||||
|
run_install: false
|
||||||
|
|
||||||
- name: Use Node.js ${{ matrix.node_version }}
|
- name: Use Node.js ${{ matrix.node_version }}
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
@ -288,6 +291,7 @@ jobs:
|
|||||||
- name: Run e2e tests
|
- name: Run e2e tests
|
||||||
id: e2e-run
|
id: e2e-run
|
||||||
run: pnpm nx run ${{ matrix.project }}:e2e
|
run: pnpm nx run ${{ matrix.project }}:e2e
|
||||||
|
shell: bash
|
||||||
timeout-minutes: 120
|
timeout-minutes: 120
|
||||||
env:
|
env:
|
||||||
GIT_AUTHOR_EMAIL: test@test.com
|
GIT_AUTHOR_EMAIL: test@test.com
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
import * as yargs from 'yargs';
|
import * as yargs from 'yargs';
|
||||||
import { execSync } from 'child_process';
|
import { execSync } from 'child_process';
|
||||||
import { existsSync, readFileSync, writeFileSync } from 'fs';
|
import { existsSync, readFileSync, rmSync, writeFileSync } from 'fs';
|
||||||
import { URL } from 'url';
|
import { URL } from 'url';
|
||||||
import { join } from 'path';
|
import { join } from 'path';
|
||||||
|
|
||||||
@ -26,7 +26,10 @@ function hideFromGitIndex(uncommittedFiles: string[]) {
|
|||||||
const options = parseArgs();
|
const options = parseArgs();
|
||||||
|
|
||||||
if (options.clearLocalRegistry) {
|
if (options.clearLocalRegistry) {
|
||||||
execSync('pnpm local-registry clear');
|
rmSync(join(__dirname, '../build/local-registry/storage'), {
|
||||||
|
recursive: true,
|
||||||
|
force: true,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const currentLatestVersion = execSync('npm view nx version')
|
const currentLatestVersion = execSync('npm view nx version')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user