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:
Miroslav Jonaš 2021-05-17 11:27:59 +02:00 committed by GitHub
parent ff69134373
commit 45a4ddf67b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 29 deletions

View File

@ -22,7 +22,7 @@ jobs:
- e2e-cli,e2e-nx-plugin,dep-graph-dep-graph-e2e
- e2e-cypress,e2e-jest
- e2e-react
- e2e-next
- e2e-next,e2e-gatsby
- e2e-node
- e2e-web,e2e-linter,e2e-storybook
- e2e-angular
@ -47,7 +47,7 @@ jobs:
version: 5.18.9
- name: Run e2e tests
run: yarn e2e ${{ matrix.packages }} affected
run: yarn nx run-many --target=e2e --projects=${{ matrix.packages }} --ignore-engines
env:
GIT_AUTHOR_NAME: test@test.com
GIT_AUTHOR_EMAIL: Test

View File

@ -6,5 +6,5 @@ module.exports = {
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
maxWorkers: 1,
globals: { 'ts-jest': { tsconfig: '<rootDir>/tsconfig.spec.json' } },
displayName: 'e2e-next',
displayName: 'e2e-gatsby',
};

View File

@ -2019,32 +2019,6 @@
"sourceRoot": "packages/gatsby",
"projectType": "library",
"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": {
"executor": "@nrwl/jest:jest",
"options": {