Skip to content

Commit

Permalink
test: refactor e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
khalilou88 committed Oct 28, 2023
1 parent e27377f commit 2d06283
Show file tree
Hide file tree
Showing 20 changed files with 11 additions and 64 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,16 @@ jobs:
run: npm i --legacy-peer-deps

- name: Lint
run: npm run nx affected -- --target=lint --parallel=3
run: npm run nx run-many -- --target=lint --parallel=3

- name: Unit tests
run: npm run nx affected -- --target=test --parallel=3 --ci --code-coverage
run: npm run nx run-many -- --target=test --parallel=3

- name: Build
run: npm run nx affected -- --target=build --parallel=3
run: npm run nx run-many -- --target=build --parallel=3

- name: E2E tests
run: npm run nx affected -- --target=e2e
run: npm run nx run-many -- --target=e2e
env:
NX_VERBOSE_LOGGING: 'true'
GITHUB_ACTIONS: 'true'
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:

- name: E2E tests
id: e2e
run: npm run nx run-many -- --target=e2e --projects=jnxplus-nx-maven-e2e
run: npm run nx run-many -- --target=e2e --t="nx-maven spring-boot-parent-pom e2e"
env:
NX_VERBOSE_LOGGING: 'true'
GITHUB_ACTIONS: 'true'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nx-migrate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
id: e2e
if: steps.nx-workspace-outdated.outputs.outdated == 'true'
continue-on-error: true
run: npm run nx run-many -- --target=e2e --projects=nx-boot-gradle-e2e,nx-boot-maven-e2e
run: npm run nx run-many -- --target=e2e --t="nx-maven spring-boot-parent-pom e2e"
env:
NX_VERBOSE_LOGGING: 'true'
GITHUB_ACTIONS: 'true'
Expand Down
53 changes: 0 additions & 53 deletions .github/workflows/publish-plugin.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { rmSync } from 'fs';
import * as fse from 'fs-extra';
import * as path from 'path';

describe('nx-maven e2e', () => {
describe('nx-maven all bom e2e', () => {
let workspaceDirectory: string;
const isCI =
process.env.CI === 'true' || process.env.GITHUB_ACTIONS === 'true';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { rmSync } from 'fs';
import * as fse from 'fs-extra';
import * as path from 'path';

describe('nx-maven e2e', () => {
describe('nx-maven maven-root-directory e2e', () => {
let workspaceDirectory: string;
const isCI =
process.env.CI === 'true' || process.env.GITHUB_ACTIONS === 'true';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { rmSync } from 'fs';
import * as fse from 'fs-extra';
import * as path from 'path';

describe('nx-micronaut-maven e2e', () => {
describe('nx-maven micronaut-parent-pom e2e', () => {
let workspaceDirectory: string;
const isCI =
process.env.CI === 'true' || process.env.GITHUB_ACTIONS === 'true';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { rmSync } from 'fs';
import * as fse from 'fs-extra';
import * as path from 'path';

describe('nx-quarkus-maven e2e', () => {
describe('nx-maven quarkus bom e2e', () => {
let workspaceDirectory: string;
const isCI =
process.env.CI === 'true' || process.env.GITHUB_ACTIONS === 'true';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { rmSync } from 'fs';
import * as fse from 'fs-extra';
import * as path from 'path';

describe('nx-boot-maven e2e', () => {
describe('nx-maven spring-boot-parent-pom e2e', () => {
let workspaceDirectory: string;
const isCI =
process.env.CI === 'true' || process.env.GITHUB_ACTIONS === 'true';
Expand Down

0 comments on commit 2d06283

Please sign in to comment.