chore(repo): run lint,test, and build in the same command in CI (#19189)
This commit is contained in:
parent
56481d6976
commit
b2a9d4d79a
@ -191,11 +191,7 @@ jobs:
|
|||||||
pnpm nx run-many -t check-imports check-commit check-lock-files check-codeowners documentation --parallel=1 --no-dte &
|
pnpm nx run-many -t check-imports check-commit check-lock-files check-codeowners documentation --parallel=1 --no-dte &
|
||||||
pids+=($!)
|
pids+=($!)
|
||||||
|
|
||||||
pnpm nx affected --target=lint --base=$NX_BASE --head=$NX_HEAD --parallel=3 &
|
(pnpm nx affected --targets=lint,test,build --base=$NX_BASE --head=$NX_HEAD --parallel=3 &&
|
||||||
pids+=($!)
|
|
||||||
pnpm nx affected --target=test --base=$NX_BASE --head=$NX_HEAD --parallel=1 &
|
|
||||||
pids+=($!)
|
|
||||||
(pnpm nx affected --target=build --base=$NX_BASE --head=$NX_HEAD --parallel=3 &&
|
|
||||||
pnpm nx affected --target=e2e --base=$NX_BASE --head=$NX_HEAD --parallel=1) &
|
pnpm nx affected --target=e2e --base=$NX_BASE --head=$NX_HEAD --parallel=1) &
|
||||||
pids+=($!)
|
pids+=($!)
|
||||||
|
|
||||||
|
|||||||
3
nx.json
3
nx.json
@ -32,8 +32,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"workspaceLayout": {
|
"workspaceLayout": {
|
||||||
"appsDir": "",
|
"projectNameAndRootFormat": "as-provided"
|
||||||
"libsDir": ""
|
|
||||||
},
|
},
|
||||||
"namedInputs": {
|
"namedInputs": {
|
||||||
"default": ["{projectRoot}/**/*", "sharedGlobals"],
|
"default": ["{projectRoot}/**/*", "sharedGlobals"],
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import {
|
|||||||
getRelativeImports,
|
getRelativeImports,
|
||||||
getWithNxContent,
|
getWithNxContent,
|
||||||
} from './create-next-config-file';
|
} from './create-next-config-file';
|
||||||
import { stripIndents } from '@nx/devkit';
|
import { stripIndents, workspaceLayout } from '@nx/devkit';
|
||||||
import { join } from 'path';
|
import { join } from 'path';
|
||||||
|
|
||||||
describe('Next.js config: getWithNxContent', () => {
|
describe('Next.js config: getWithNxContent', () => {
|
||||||
@ -60,8 +60,8 @@ describe('Next.js config: getWithNxContent', () => {
|
|||||||
expect(result).not.toContain(
|
expect(result).not.toContain(
|
||||||
`const { workspaceRoot, workspaceLayout } = require('@nx/devkit');`
|
`const { workspaceRoot, workspaceLayout } = require('@nx/devkit');`
|
||||||
);
|
);
|
||||||
expect(result).toContain(`libsDir: ''`);
|
expect(result).toContain(`libsDir: '${workspaceLayout().libsDir}'`);
|
||||||
expect(result).not.toContain(`libsDir: workspaceLayout.libsDir()`);
|
expect(result).not.toContain(`libsDir: workspaceLayout().libsDir`);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should return relative module paths used in next.config.js when calling getRelativeFilesToCopy', () => {
|
it('should return relative module paths used in next.config.js when calling getRelativeFilesToCopy', () => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user