mirror of
https://github.com/keycloak/keycloak.git
synced 2025-12-21 14:30:05 -06:00
This reverts commit cf47bef66b.
This commit is contained in:
50
.github/workflows/js-ci.yml
vendored
50
.github/workflows/js-ci.yml
vendored
@@ -191,6 +191,7 @@ jobs:
|
|||||||
name: account-ui-server-log
|
name: account-ui-server-log
|
||||||
path: ~/server.log
|
path: ~/server.log
|
||||||
|
|
||||||
|
|
||||||
generate-test-seed:
|
generate-test-seed:
|
||||||
name: Generate Test Seed
|
name: Generate Test Seed
|
||||||
needs:
|
needs:
|
||||||
@@ -218,8 +219,6 @@ jobs:
|
|||||||
WORKSPACE: keycloak-admin-ui
|
WORKSPACE: keycloak-admin-ui
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
shardIndex: [1, 2, 3, 4]
|
|
||||||
shardTotal: [4]
|
|
||||||
browser: [chromium, firefox]
|
browser: [chromium, firefox]
|
||||||
exclude:
|
exclude:
|
||||||
# Only test with Firefox on scheduled runs
|
# Only test with Firefox on scheduled runs
|
||||||
@@ -257,50 +256,23 @@ jobs:
|
|||||||
working-directory: js
|
working-directory: js
|
||||||
|
|
||||||
- name: Run Playwright tests
|
- name: Run Playwright tests
|
||||||
run: pnpm --fail-if-no-match --filter ${{ env.WORKSPACE }} test:integration --project=${{ matrix.browser }} --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
|
run: pnpm --fail-if-no-match --filter ${{ env.WORKSPACE }} test:integration --project=${{ matrix.browser }}
|
||||||
working-directory: js
|
|
||||||
|
|
||||||
- name: Upload blob report to GitHub Actions Artifacts
|
|
||||||
if: ${{ !cancelled() }}
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: blob-report-${{ matrix.shardIndex }}
|
|
||||||
path: ./js/apps/admin-ui/blob-report
|
|
||||||
retention-days: 1
|
|
||||||
|
|
||||||
- name: Upload server logs
|
|
||||||
if: always()
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: admin-ui-server-log-${{ matrix.browser }}-${{ matrix.shardIndex }}
|
|
||||||
path: ~/server.log
|
|
||||||
|
|
||||||
merge-reports:
|
|
||||||
name: Merge Playwright reports
|
|
||||||
if: ${{ !cancelled() }}
|
|
||||||
needs: [admin-ui-e2e]
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: ./.github/actions/pnpm-setup
|
|
||||||
|
|
||||||
- name: Download blob reports from GitHub Actions Artifacts
|
|
||||||
uses: actions/download-artifact@v4
|
|
||||||
with:
|
|
||||||
path: ~/all-blob-reports/
|
|
||||||
pattern: blob-report-*
|
|
||||||
merge-multiple: true
|
|
||||||
|
|
||||||
- name: Merge Playwright reports
|
|
||||||
run: pnpm --fail-if-no-match --filter keycloak-admin-ui exec playwright merge-reports -c ./output-config.ts ~/all-blob-reports
|
|
||||||
working-directory: js
|
working-directory: js
|
||||||
|
|
||||||
- name: Upload Playwright report
|
- name: Upload Playwright report
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: admin-ui-playwright-report
|
name: admin-ui-playwright-report-${{ matrix.browser }}
|
||||||
path: js/apps/admin-ui/playwright-report
|
path: js/apps/admin-ui/playwright-report
|
||||||
|
retention-days: 30
|
||||||
|
|
||||||
|
- name: Upload server logs
|
||||||
|
if: always()
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: admin-ui-server-log-${{ matrix.browser }}
|
||||||
|
path: ~/server.log
|
||||||
|
|
||||||
check:
|
check:
|
||||||
name: Status Check - Keycloak JavaScript CI
|
name: Status Check - Keycloak JavaScript CI
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
import { defineConfig } from "@playwright/test";
|
|
||||||
|
|
||||||
// used by GHA to generate the report
|
|
||||||
export default defineConfig({
|
|
||||||
reporter: [["html", { outputFile: "playwright-report", open: "never" }]],
|
|
||||||
});
|
|
||||||
@@ -11,7 +11,7 @@ export default defineConfig({
|
|||||||
forbidOnly: !!process.env.CI,
|
forbidOnly: !!process.env.CI,
|
||||||
retries: retryCount,
|
retries: retryCount,
|
||||||
workers: 1,
|
workers: 1,
|
||||||
reporter: process.env.CI ? "blob" : "list",
|
reporter: process.env.CI ? [["github"], ["html"]] : "list",
|
||||||
|
|
||||||
use: {
|
use: {
|
||||||
baseURL: "http://localhost:8080",
|
baseURL: "http://localhost:8080",
|
||||||
|
|||||||
Reference in New Issue
Block a user