Skip to content
Merged
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
108 changes: 28 additions & 80 deletions .github/workflows/functional_all_db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,31 +33,23 @@ jobs:
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: ./.github/actions/setup-dotnet
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: "20"
package-manager-cache: false
- name: Cache Playwright Browsers
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ~/.cache/ms-playwright
key: playwright-${{ hashFiles('yarn.lock') }}
- name: Build
run: |
dotnet build -c Release test/OrchardCore.Tests.Functional/OrchardCore.Tests.Functional.csproj
- name: Install Playwright Browsers
run: |
npm install -g corepack
corepack enable
yarn install
yarn workspace @orchardcore/tests-playwright exec playwright install --with-deps chromium
pwsh test/OrchardCore.Tests.Functional/bin/Release/net10.0/playwright.ps1 install --with-deps chromium
- name: Functional Tests
env:
ORCHARD_APP: mvc
run: |
yarn workspace @orchardcore/tests-playwright test:mvc
dotnet test test/OrchardCore.Tests.Functional/OrchardCore.Tests.Functional.csproj -c Release --no-build --filter-class "*Mvc*"
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
if: failure()
with:
name: functional-mvc-failure
path: |
test/OrchardCore.Tests.Playwright/playwright-report/
test/OrchardCore.Tests.Playwright/test-results/
src/OrchardCore.Mvc.Web/App_Data_Tests/logs
retention-days: 3

test_functional_cms_sqlite:
Expand All @@ -72,31 +64,20 @@ jobs:
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: ./.github/actions/setup-dotnet
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: "20"
package-manager-cache: false
- name: Cache Playwright Browsers
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ~/.cache/ms-playwright
key: playwright-${{ hashFiles('yarn.lock') }}
- name: Build
run: |
dotnet build -c Release test/OrchardCore.Tests.Functional/OrchardCore.Tests.Functional.csproj
- name: Install Playwright Browsers
run: |
npm install -g corepack
corepack enable
yarn install
yarn workspace @orchardcore/tests-playwright exec playwright install --with-deps chromium
pwsh test/OrchardCore.Tests.Functional/bin/Release/net10.0/playwright.ps1 install --with-deps chromium
- name: Functional Tests
run: |
yarn workspace @orchardcore/tests-playwright test:cms
dotnet test test/OrchardCore.Tests.Functional/OrchardCore.Tests.Functional.csproj -c Release --no-build --filter-class "*Cms*"
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
if: failure()
with:
name: functional-cms-sqlite-failure
path: |
test/OrchardCore.Tests.Playwright/playwright-report/
test/OrchardCore.Tests.Playwright/test-results/
src/OrchardCore.Cms.Web/App_Data_Tests/logs
retention-days: 3

Expand Down Expand Up @@ -129,31 +110,20 @@ jobs:
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: ./.github/actions/setup-dotnet
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: "20"
package-manager-cache: false
- name: Cache Playwright Browsers
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ~/.cache/ms-playwright
key: playwright-${{ hashFiles('yarn.lock') }}
- name: Build
run: |
dotnet build -c Release test/OrchardCore.Tests.Functional/OrchardCore.Tests.Functional.csproj
- name: Install Playwright Browsers
run: |
npm install -g corepack
corepack enable
yarn install
yarn workspace @orchardcore/tests-playwright exec playwright install --with-deps chromium
pwsh test/OrchardCore.Tests.Functional/bin/Release/net10.0/playwright.ps1 install --with-deps chromium
- name: Functional Tests
run: |
yarn workspace @orchardcore/tests-playwright test:cms
dotnet test test/OrchardCore.Tests.Functional/OrchardCore.Tests.Functional.csproj -c Release --no-build --filter-class "*Cms*"
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
if: failure()
with:
name: functional-cms-postgresql-failure
path: |
test/OrchardCore.Tests.Playwright/playwright-report/
test/OrchardCore.Tests.Playwright/test-results/
src/OrchardCore.Cms.Web/App_Data_Tests/logs
retention-days: 3

Expand All @@ -180,31 +150,20 @@ jobs:
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: ./.github/actions/setup-dotnet
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: "20"
package-manager-cache: false
- name: Cache Playwright Browsers
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ~/.cache/ms-playwright
key: playwright-${{ hashFiles('yarn.lock') }}
- name: Build
run: |
dotnet build -c Release test/OrchardCore.Tests.Functional/OrchardCore.Tests.Functional.csproj
- name: Install Playwright Browsers
run: |
npm install -g corepack
corepack enable
yarn install
yarn workspace @orchardcore/tests-playwright exec playwright install --with-deps chromium
pwsh test/OrchardCore.Tests.Functional/bin/Release/net10.0/playwright.ps1 install --with-deps chromium
- name: Functional Tests
run: |
yarn workspace @orchardcore/tests-playwright test:cms
dotnet test test/OrchardCore.Tests.Functional/OrchardCore.Tests.Functional.csproj -c Release --no-build --filter-class "*Cms*"
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
if: failure()
with:
name: functional-cms-mysql-failure
path: |
test/OrchardCore.Tests.Playwright/playwright-report/
test/OrchardCore.Tests.Playwright/test-results/
src/OrchardCore.Cms.Web/App_Data_Tests/logs
retention-days: 3

Expand All @@ -230,30 +189,19 @@ jobs:
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: ./.github/actions/setup-dotnet
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: "20"
package-manager-cache: false
- name: Cache Playwright Browsers
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ~/.cache/ms-playwright
key: playwright-${{ hashFiles('yarn.lock') }}
- name: Build
run: |
dotnet build -c Release test/OrchardCore.Tests.Functional/OrchardCore.Tests.Functional.csproj
- name: Install Playwright Browsers
run: |
npm install -g corepack
corepack enable
yarn install
yarn workspace @orchardcore/tests-playwright exec playwright install --with-deps chromium
pwsh test/OrchardCore.Tests.Functional/bin/Release/net10.0/playwright.ps1 install --with-deps chromium
- name: Functional Tests
run: |
yarn workspace @orchardcore/tests-playwright test:cms
dotnet test test/OrchardCore.Tests.Functional/OrchardCore.Tests.Functional.csproj -c Release --no-build --filter-class "*Cms*"
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
if: failure()
with:
name: functional-cms-mssql-failure
path: |
test/OrchardCore.Tests.Playwright/playwright-report/
test/OrchardCore.Tests.Playwright/test-results/
src/OrchardCore.Cms.Web/App_Data_Tests/logs
retention-days: 3
21 changes: 6 additions & 15 deletions .github/workflows/main_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: "20"
node-version: "15"
package-manager-cache: false
- uses: ./.github/actions/setup-dotnet
- name: Build
Expand All @@ -36,32 +36,23 @@ jobs:
- name: Unit Tests
run: |
dotnet test --project ./test/OrchardCore.Tests/OrchardCore.Tests.csproj -c Release --no-build
- name: Cache Playwright Browsers
if: matrix.os == 'ubuntu-24.04'
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ~/.cache/ms-playwright
key: playwright-${{ hashFiles('yarn.lock') }}
- name: Install Playwright Browsers
if: matrix.os == 'ubuntu-24.04'
run: |
npm install -g corepack
corepack enable
yarn install
yarn workspace @orchardcore/tests-playwright exec playwright install --with-deps chromium
pwsh test/OrchardCore.Tests.Functional/bin/Release/net10.0/playwright.ps1 install --with-deps chromium
- name: Functional Tests - CMS
if: matrix.os == 'ubuntu-24.04'
run: |
yarn workspace @orchardcore/tests-playwright test:cms
dotnet test test/OrchardCore.Tests.Functional/OrchardCore.Tests.Functional.csproj -c Release --no-build --filter-class "*Cms*"
- name: Functional Tests - MVC
if: matrix.os == 'ubuntu-24.04'
env:
ORCHARD_APP: mvc
run: |
yarn workspace @orchardcore/tests-playwright test:mvc
dotnet test test/OrchardCore.Tests.Functional/OrchardCore.Tests.Functional.csproj -c Release --no-build --filter-class "*Mvc*"
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
if: matrix.os == 'ubuntu-24.04' && failure()
with:
name: Functional Test failure
path: |
test/OrchardCore.Tests.Playwright/playwright-report/
test/OrchardCore.Tests.Playwright/test-results/
src/OrchardCore.Cms.Web/App_Data_Tests/logs
22 changes: 6 additions & 16 deletions .github/workflows/pr_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: "20"
node-version: "15"
package-manager-cache: false
- uses: ./.github/actions/setup-dotnet
- name: Build
Expand All @@ -33,33 +33,23 @@ jobs:
- name: Unit Tests
run: |
dotnet test --project ./test/OrchardCore.Tests/OrchardCore.Tests.csproj -c Release --no-build
- name: Cache Playwright Browsers
if: matrix.os == 'ubuntu-24.04'
id: playwright-cache
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ~/.cache/ms-playwright
key: playwright-${{ hashFiles('yarn.lock') }}
- name: Install Playwright Browsers
if: matrix.os == 'ubuntu-24.04'
run: |
npm install -g corepack
corepack enable
yarn install
yarn workspace @orchardcore/tests-playwright exec playwright install --with-deps chromium
pwsh test/OrchardCore.Tests.Functional/bin/Release/net10.0/playwright.ps1 install --with-deps chromium
- name: Functional Tests - CMS
if: matrix.os == 'ubuntu-24.04'
run: |
yarn workspace @orchardcore/tests-playwright test:cms
dotnet test test/OrchardCore.Tests.Functional/OrchardCore.Tests.Functional.csproj -c Release --no-build --filter-class "*Cms*"
- name: Functional Tests - MVC
if: matrix.os == 'ubuntu-24.04'
env:
ORCHARD_APP: mvc
run: |
yarn workspace @orchardcore/tests-playwright test:mvc
dotnet test test/OrchardCore.Tests.Functional/OrchardCore.Tests.Functional.csproj -c Release --no-build --filter-class "*Mvc*"
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
if: matrix.os == 'ubuntu-24.04' && failure()
with:
name: functional-test-failure
path: |
test/OrchardCore.Tests.Playwright/playwright-report/
test/OrchardCore.Tests.Playwright/test-results/
src/OrchardCore.Cms.Web/App_Data_Tests/logs
21 changes: 6 additions & 15 deletions .github/workflows/preview_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
if: steps.check-publish.outputs.should-publish == 'true'
with:
node-version: "20"
node-version: "15"
package-manager-cache: false
- uses: ./.github/actions/setup-dotnet
if: steps.check-publish.outputs.should-publish == 'true'
Expand All @@ -42,34 +42,25 @@ jobs:
if: steps.check-publish.outputs.should-publish == 'true'
run: |
dotnet test --project ./test/OrchardCore.Tests/OrchardCore.Tests.csproj -c Release --no-build
- name: Cache Playwright Browsers
if: steps.check-publish.outputs.should-publish == 'true'
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ~/.cache/ms-playwright
key: playwright-${{ hashFiles('yarn.lock') }}
- name: Install Playwright Browsers
if: steps.check-publish.outputs.should-publish == 'true'
run: |
npm install -g corepack
corepack enable
yarn install
yarn workspace @orchardcore/tests-playwright exec playwright install --with-deps chromium
pwsh test/OrchardCore.Tests.Functional/bin/Release/net10.0/playwright.ps1 install --with-deps chromium
- name: Functional Tests - CMS
if: steps.check-publish.outputs.should-publish == 'true'
run: |
yarn workspace @orchardcore/tests-playwright test:cms
dotnet test test/OrchardCore.Tests.Functional/OrchardCore.Tests.Functional.csproj -c Release --no-build --filter-class "*Cms*"
- name: Functional Tests - MVC
if: steps.check-publish.outputs.should-publish == 'true'
env:
ORCHARD_APP: mvc
run: |
yarn workspace @orchardcore/tests-playwright test:mvc
dotnet test test/OrchardCore.Tests.Functional/OrchardCore.Tests.Functional.csproj -c Release --no-build --filter-class "*Mvc*"
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
if: failure()
with:
name: Functional Test failure
path: |
test/OrchardCore.Tests.Playwright/playwright-report/
test/OrchardCore.Tests.Playwright/test-results/
src/OrchardCore.Cms.Web/App_Data_Tests/logs
- name: Deploy preview NuGet packages
if: steps.check-publish.outputs.should-publish == 'true'
Expand Down
21 changes: 6 additions & 15 deletions .github/workflows/release_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: "20"
node-version: "15"
package-manager-cache: false
- uses: ./.github/actions/setup-dotnet
- name: Set build number
Expand All @@ -44,34 +44,25 @@ jobs:
- name: Unit Tests
run: |
dotnet test --project ./test/OrchardCore.Tests/OrchardCore.Tests.csproj -c Release --no-build
- name: Cache Playwright Browsers
if: matrix.os == 'ubuntu-24.04'
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
with:
path: ~/.cache/ms-playwright
key: playwright-${{ hashFiles('yarn.lock') }}
- name: Install Playwright Browsers
if: matrix.os == 'ubuntu-24.04'
run: |
npm install -g corepack
corepack enable
yarn install
yarn workspace @orchardcore/tests-playwright exec playwright install --with-deps chromium
pwsh test/OrchardCore.Tests.Functional/bin/Release/net10.0/playwright.ps1 install --with-deps chromium
- name: Functional Tests - CMS
if: matrix.os == 'ubuntu-24.04'
run: |
yarn workspace @orchardcore/tests-playwright test:cms
dotnet test test/OrchardCore.Tests.Functional/OrchardCore.Tests.Functional.csproj -c Release --no-build --filter-class "*Cms*"
- name: Functional Tests - MVC
if: matrix.os == 'ubuntu-24.04'
env:
ORCHARD_APP: mvc
run: |
yarn workspace @orchardcore/tests-playwright test:mvc
dotnet test test/OrchardCore.Tests.Functional/OrchardCore.Tests.Functional.csproj -c Release --no-build --filter-class "*Mvc*"
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
if: matrix.os == 'ubuntu-24.04' && failure()
with:
name: Functional Test failure
path: |
test/OrchardCore.Tests.Playwright/playwright-report/
test/OrchardCore.Tests.Playwright/test-results/
src/OrchardCore.Cms.Web/App_Data_Tests/logs
- name: Deploy release NuGet packages
if: matrix.os == 'ubuntu-24.04'
Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -224,5 +224,3 @@ src/Templates/**/content/**/.template.config/
BenchmarkDotNet.Artifacts

.playwright-cli
test/OrchardCore.Tests.Playwright/test-results
test/OrchardCore.Tests.Playwright/playwright-report
Loading
Loading