Skip to content

Commit

Permalink
ci(test/e2e): fix incorrect 'test' command to 'e2e' command
Browse files Browse the repository at this point in the history
  • Loading branch information
MFarabi619 committed Dec 3, 2024
1 parent 5f9db96 commit 42eff08
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 23 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/TEST_E2E.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,18 @@ jobs:
run: pnpm i; pnpm playwright install --with-deps

- name: ⚗️ Run E2E Tests for Affected Projects
run: pnpm nx affected -t test --base=origin/main --head=HEAD --reporter=html --verbose
run: pnpm nx affected -t e2e --base=origin/main --head=HEAD --reporter=html --verbose

# - name: 💀 Run Docs E2E Tests
# run: pnpm nx run docs-e2e:e2e --reporter=html --verbose

# - name: 📄 Upload Docs E2E Playwright Report
# uses: actions/upload-artifact@v4
# if: always()
# with:
# name: playwright-report-docs-e2e
# path: playwright-report/**/*
# retention-days: 30
- name: 📄 Upload Docs E2E Playwright Report
uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report-docs-e2e
path: playwright-report/**/*
retention-days: 30

# - name: 💀 Run Portal E2E Tests
# env:
Expand All @@ -56,24 +56,24 @@ jobs:
# GOOGLE_CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }}
# run: pnpm nx run portal-e2e:e2e --reporter=html --verbose

# - name: 📄 Upload Portal E2E Playwright Report
# uses: actions/upload-artifact@v4
# if: always()
# with:
# name: playwright-report-portal-e2e
# path: playwright-report/**/*
# retention-days: 30
- name: 📄 Upload Portal E2E Playwright Report
uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report-portal-e2e
path: playwright-report/**/*
retention-days: 30

# - name: 💀 Run Website E2E Tests
# run: pnpm nx run website-e2e:e2e --reporter=html --verbose

# - name: 📄 Upload Website E2E Playwright Report
# uses: actions/upload-artifact@v4
# if: always()
# with:
# name: playwright-report-website-e2e
# path: playwright-report/**/*
# retention-days: 30
- name: 📄 Upload Website E2E Playwright Report
uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report-website-e2e
path: playwright-report/**/*
retention-days: 30

- name: 💰 Profit
run: echo 🐞
2 changes: 2 additions & 0 deletions apps/docs-e2e/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ const baseURL = process.env.BASE_URL || 'http://127.0.0.1:3000'
export default defineConfig({
...nxE2EPreset(__filename, { testDir: './src' }),
fullyParallel: true,
// Opt out of parallel tests on CI.
workers: process.env.CI ? 1 : undefined,
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
retries: 2,
use: {
Expand Down
1 change: 1 addition & 0 deletions apps/docs-e2e/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/docs-e2e/src",
"tags": [],
"implicitDependencies": ["docs"],
"// targets": "to see all targets run: nx show project docs-e2e --web",
"targets": {}
}
2 changes: 2 additions & 0 deletions apps/website-e2e/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ const baseURL = process.env.BASE_URL || 'http://localhost:3000'
export default defineConfig({
...nxE2EPreset(__filename, { testDir: './src' }),
fullyParallel: true,
// Opt out of parallel tests on CI.
workers: process.env.CI ? 1 : undefined,
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
baseURL,
Expand Down
1 change: 0 additions & 1 deletion apps/website-e2e/project.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "website-e2e",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"sourceRoot": "apps/website-e2e/src",
"tags": [],
"implicitDependencies": ["website"],
Expand Down

0 comments on commit 42eff08

Please sign in to comment.