chore(testing): fix gatsby e2e CI setup (#5637)
* fix(testing): remove duplicate gatsby e2e target * fix(core): add missing gatsby e2e to matrix * chore(repo): fix gh matrix command * chore(repo): remove affected flag from gh matrix * chore(repo): use run-many for e2e matrix
This commit is contained in:
parent
ff69134373
commit
45a4ddf67b
4
.github/workflows/e2e-matrix.yml
vendored
4
.github/workflows/e2e-matrix.yml
vendored
@ -22,7 +22,7 @@ jobs:
|
|||||||
- e2e-cli,e2e-nx-plugin,dep-graph-dep-graph-e2e
|
- e2e-cli,e2e-nx-plugin,dep-graph-dep-graph-e2e
|
||||||
- e2e-cypress,e2e-jest
|
- e2e-cypress,e2e-jest
|
||||||
- e2e-react
|
- e2e-react
|
||||||
- e2e-next
|
- e2e-next,e2e-gatsby
|
||||||
- e2e-node
|
- e2e-node
|
||||||
- e2e-web,e2e-linter,e2e-storybook
|
- e2e-web,e2e-linter,e2e-storybook
|
||||||
- e2e-angular
|
- e2e-angular
|
||||||
@ -47,7 +47,7 @@ jobs:
|
|||||||
version: 5.18.9
|
version: 5.18.9
|
||||||
|
|
||||||
- name: Run e2e tests
|
- name: Run e2e tests
|
||||||
run: yarn e2e ${{ matrix.packages }} affected
|
run: yarn nx run-many --target=e2e --projects=${{ matrix.packages }} --ignore-engines
|
||||||
env:
|
env:
|
||||||
GIT_AUTHOR_NAME: test@test.com
|
GIT_AUTHOR_NAME: test@test.com
|
||||||
GIT_AUTHOR_EMAIL: Test
|
GIT_AUTHOR_EMAIL: Test
|
||||||
|
|||||||
@ -6,5 +6,5 @@ module.exports = {
|
|||||||
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
|
||||||
maxWorkers: 1,
|
maxWorkers: 1,
|
||||||
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
|
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
|
||||||
displayName: 'e2e-next',
|
displayName: 'e2e-gatsby',
|
||||||
};
|
};
|
||||||
|
|||||||
@ -2019,32 +2019,6 @@
|
|||||||
"sourceRoot": "packages/gatsby",
|
"sourceRoot": "packages/gatsby",
|
||||||
"projectType": "library",
|
"projectType": "library",
|
||||||
"targets": {
|
"targets": {
|
||||||
"e2e": {
|
|
||||||
"executor": "@nrwl/workspace:run-commands",
|
|
||||||
"options": {
|
|
||||||
"commands": [
|
|
||||||
{
|
|
||||||
"command": "yarn e2e-start-local-registry"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command": "yarn e2e-build-package-publish"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"command": "nx run-e2e-tests e2e-gatsby"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"parallel": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"run-e2e-tests": {
|
|
||||||
"executor": "@nrwl/jest:jest",
|
|
||||||
"options": {
|
|
||||||
"jestConfig": "e2e/gatsby/jest.config.js",
|
|
||||||
"passWithNoTests": true,
|
|
||||||
"runInBand": true
|
|
||||||
},
|
|
||||||
"outputs": ["coverage/e2e/gatsby"]
|
|
||||||
},
|
|
||||||
"test": {
|
"test": {
|
||||||
"executor": "@nrwl/jest:jest",
|
"executor": "@nrwl/jest:jest",
|
||||||
"options": {
|
"options": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user