Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 18 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,16 @@ jobs:
PAYLOAD_DATABASE: ${{ matrix.database }}
POSTGRES_URL: ${{ env.POSTGRES_URL }}

tests-e2e:
tests-e2e-webpack:
runs-on: ubuntu-24.04
needs: [changes, build]
if: ${{ needs.changes.outputs.needs_tests == 'true' }}
name: e2e-${{ matrix.suite }}
if: >-
needs.changes.outputs.needs_tests == 'true' &&
(
contains(github.event.pull_request.labels.*.name, 'run-e2e-webpack') ||
github.event.label.name == 'run-e2e-webpack'
)
name: e2e-webpack-${{ matrix.suite }}
timeout-minutes: 45
strategy:
fail-fast: false
Expand Down Expand Up @@ -380,7 +385,7 @@ jobs:
- uses: actions/upload-artifact@v4
if: always()
with:
name: test-results-${{ matrix.suite }}
name: test-results-webpack-${{ matrix.suite }}
path: test/test-results/
if-no-files-found: ignore
retention-days: 1
Expand All @@ -396,13 +401,9 @@ jobs:
tests-e2e-turbo:
runs-on: ubuntu-24.04
needs: [changes, build]
if: >-
needs.changes.outputs.needs_tests == 'true' &&
(
contains(github.event.pull_request.labels.*.name, 'run-e2e-turbo') ||
github.event.label.name == 'run-e2e-turbo'
)
name: e2e-turbo-${{ matrix.suite }}
if: ${{ needs.changes.outputs.needs_tests == 'true' }}
name: e2e-${{ matrix.suite }}
timeout-minutes: 45
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -443,6 +444,8 @@ jobs:
- fields__collections__Text
- fields__collections__UI
- fields__collections__Upload
- fields__collections__UploadPoly
- fields__collections__UploadMultiPoly
- group-by
- folders
- hooks
Expand All @@ -467,6 +470,7 @@ jobs:
- plugin-import-export
- plugin-multi-tenant
- plugin-nested-docs
- plugin-redirects
- plugin-seo
- sort
- trash
Expand Down Expand Up @@ -509,7 +513,7 @@ jobs:

- name: Setup Playwright - Browsers and Dependencies
if: steps.cache-playwright-browsers.outputs.cache-hit != 'true'
run: pnpm exec playwright install --with-deps chromium
run: pnpm exec playwright install --with-deps chromium --no-shell

- name: Setup Playwright - Dependencies-only
if: steps.cache-playwright-browsers.outputs.cache-hit == 'true'
Expand All @@ -524,7 +528,7 @@ jobs:
- uses: actions/upload-artifact@v4
if: always()
with:
name: test-results-turbo${{ matrix.suite }}
name: test-results-${{ matrix.suite }}
path: test/test-results/
if-no-files-found: ignore
retention-days: 1
Expand Down Expand Up @@ -702,7 +706,7 @@ jobs:
- build-and-test-templates
- tests-unit
- tests-int
- tests-e2e
- tests-e2e-turbo
- tests-types
- tests-type-generation

Expand Down
2 changes: 1 addition & 1 deletion test/plugin-multi-tenant/config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { multiTenantPlugin } from '@payloadcms/plugin-multi-tenant'
import { getTenantFromCookie } from '@payloadcms/plugin-multi-tenant/utilities'
import { fileURLToPath } from 'node:url'
import path from 'path'
const filename = fileURLToPath(import.meta.url)
const dirname = path.dirname(filename)

import type { Config as ConfigType } from './payload-types.js'

import { getTenantFromCookie } from '../../packages/plugin-multi-tenant/src/utilities/getTenantFromCookie.js'
import { buildConfigWithDefaults } from '../buildConfigWithDefaults.js'
import { AutosaveGlobal } from './collections/AutosaveGlobal.js'
import { Menu } from './collections/Menu.js'
Expand Down
Loading