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
3 changes: 3 additions & 0 deletions .github/workflows/00-cancel-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
name: Cancel Workflow
runs-on: ubuntu-24.04 # Use Ubuntu 24.04 explicitly
steps:
- name: ⏬ Checkout repo
uses: actions/checkout@v5

- name: 💀 Killing me softly
run: |
gh run cancel ${{ github.run_id }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/01-build-patternhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ jobs:
ASSET_PASSWORD: ${{ secrets.ASSET_PASSWORD }}
NEXT_PUBLIC_BASE_PATH: ${{ steps.base-path.outputs.result }}
run: |
node node_modules/@db-ux/db-theme-fonts/build/scripts/index.js
node node_modules/@db-ux/db-theme-icons/build/scripts/index.js
npx --no tsx scripts/md-resolve-svg.ts
npm run build --workspace=patternhub
echo "path=${NEXT_PUBLIC_BASE_PATH}" >> $GITHUB_OUTPUT
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/01-build-showcases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ jobs:
env:
ASSET_INIT_VECTOR: ${{ secrets.ASSET_INIT_VECTOR }}
ASSET_PASSWORD: ${{ secrets.ASSET_PASSWORD }}
run: npm run build --workspace=${{ inputs.showcase }}
run: |
node node_modules/@db-ux/db-theme-fonts/build/scripts/index.js
node node_modules/@db-ux/db-theme-icons/build/scripts/index.js
npm run build --workspace=${{ inputs.showcase }}

- name: ⏫ Upload ${{ inputs.showcase }}
uses: actions/upload-artifact@v4
Expand Down
80 changes: 13 additions & 67 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@ jobs:
uses: ./.github/workflows/00-init.yml
secrets: inherit

cancel-init:
if: ${{ needs.init.result == 'failure' }}
uses: ./.github/workflows/00-cancel-workflow.yml
secrets: inherit
needs: [init]

scan-secrets:
if: github.event.pull_request == null || github.event.pull_request.head.repo.owner.login == 'db-ux-design-system'
uses: ./.github/workflows/00-scan-secrets.yml
Expand All @@ -45,18 +39,12 @@ jobs:
uses: ./.github/workflows/01-get-playwright-version.yml
needs: [init]

cancel-on-failure-get-playwright-version:
if: ${{ needs.get-playwright-version.result == 'failure' }}
uses: ./.github/workflows/00-cancel-workflow.yml
secrets: inherit
needs: [get-playwright-version]

lint:
uses: ./.github/workflows/01-lint.yml
needs: [init]

cancel-on-failure-lint:
if: ${{ needs.lint.result == 'failure' }}
if: ${{ !cancelled() && needs.lint.result == 'failure' }}
uses: ./.github/workflows/00-cancel-workflow.yml
secrets: inherit
needs: [lint]
Expand All @@ -66,7 +54,7 @@ jobs:
needs: [init]

cancel-on-failure-test:
if: ${{ needs.test.result == 'failure' }}
if: ${{ !cancelled() && needs.test.result == 'failure' }}
uses: ./.github/workflows/00-cancel-workflow.yml
secrets: inherit
needs: [test]
Expand All @@ -76,7 +64,7 @@ jobs:
needs: [init]

cancel-on-failure-build-packages:
if: ${{ needs.build-packages.result == 'failure' }}
if: ${{ !cancelled() && needs.build-packages.result == 'failure' }}
uses: ./.github/workflows/00-cancel-workflow.yml
secrets: inherit
needs: [build-packages]
Expand All @@ -88,7 +76,7 @@ jobs:
version: ${{ needs.get-playwright-version.outputs.version }}

cancel-on-failure-init-playwright:
if: ${{ needs.init-playwright.result == 'failure' }}
if: ${{ !cancelled() && needs.init-playwright.result == 'failure' }}
uses: ./.github/workflows/00-cancel-workflow.yml
secrets: inherit
needs: [init-playwright]
Expand All @@ -98,7 +86,7 @@ jobs:
needs: [build-packages]

cancel-on-failure-build-outputs:
if: ${{ needs.build-outputs.result == 'failure' }}
if: ${{ !cancelled() && needs.build-outputs.result == 'failure' }}
uses: ./.github/workflows/00-cancel-workflow.yml
secrets: inherit
needs: [build-outputs]
Expand All @@ -109,32 +97,20 @@ jobs:
with:
version: ${{ needs.get-playwright-version.outputs.version }}

cancel-on-failure-test-components:
if: ${{ needs.test-components.result == 'failure' }}
uses: ./.github/workflows/00-cancel-workflow.yml
secrets: inherit
needs: [test-components]

test-foundations:
uses: ./.github/workflows/02-e2e-foundations.yml
needs: [build-packages, get-playwright-version]
with:
version: ${{ needs.get-playwright-version.outputs.version }}

cancel-on-failure-test-foundations:
if: ${{ needs.test-foundations.result == 'failure' }}
uses: ./.github/workflows/00-cancel-workflow.yml
secrets: inherit
needs: [test-foundations]

build-showcase-stencil:
uses: ./.github/workflows/01-build-showcases.yml
needs: [build-packages]
with:
showcase: stencil-showcase

cancel-on-failure-build-showcase-stencil:
if: ${{ needs.build-showcase-stencil.result == 'failure' }}
if: ${{ !cancelled() && needs.build-showcase-stencil.result == 'failure' }}
uses: ./.github/workflows/00-cancel-workflow.yml
secrets: inherit
needs: [build-showcase-stencil]
Expand All @@ -146,7 +122,7 @@ jobs:
showcase: angular-showcase

cancel-on-failure-build-showcase-angular:
if: ${{ needs.build-showcase-angular.result == 'failure' }}
if: ${{ !cancelled() && needs.build-showcase-angular.result == 'failure' }}
uses: ./.github/workflows/00-cancel-workflow.yml
secrets: inherit
needs: [build-showcase-angular]
Expand All @@ -158,7 +134,7 @@ jobs:
showcase: angular-ssr-showcase

cancel-on-failure-build-showcase-angular-ssr:
if: ${{ needs.build-showcase-angular-ssr.result == 'failure' }}
if: ${{ !cancelled() && needs.build-showcase-angular-ssr.result == 'failure' }}
uses: ./.github/workflows/00-cancel-workflow.yml
secrets: inherit
needs: [build-showcase-angular-ssr]
Expand All @@ -170,7 +146,7 @@ jobs:
showcase: react-showcase

cancel-on-failure-build-showcase-react:
if: ${{ needs.build-showcase-react.result == 'failure' }}
if: ${{ !cancelled() && needs.build-showcase-react.result == 'failure' }}
uses: ./.github/workflows/00-cancel-workflow.yml
secrets: inherit
needs: [build-showcase-react]
Expand All @@ -182,7 +158,7 @@ jobs:
showcase: next-showcase

cancel-on-failure-build-showcase-next:
if: ${{ needs.build-showcase-next.result == 'failure' }}
if: ${{ !cancelled() && needs.build-showcase-next.result == 'failure' }}
uses: ./.github/workflows/00-cancel-workflow.yml
secrets: inherit
needs: [build-showcase-next]
Expand All @@ -194,7 +170,7 @@ jobs:
showcase: vue-showcase

cancel-on-failure-build-showcase-vue:
if: ${{ needs.build-showcase-vue.result == 'failure' }}
if: ${{ !cancelled() && needs.build-showcase-vue.result == 'failure' }}
uses: ./.github/workflows/00-cancel-workflow.yml
secrets: inherit
needs: [build-showcase-vue]
Expand All @@ -206,7 +182,7 @@ jobs:
showcase: nuxt-showcase

cancel-on-failure-build-showcase-nuxt:
if: ${{ needs.build-showcase-nuxt.result == 'failure' }}
if: ${{ !cancelled() && needs.build-showcase-nuxt.result == 'failure' }}
uses: ./.github/workflows/00-cancel-workflow.yml
secrets: inherit
needs: [build-showcase-nuxt]
Expand All @@ -216,7 +192,7 @@ jobs:
needs: [build-packages]

cancel-on-failure-build-showcase-patternhub:
if: ${{ needs.build-showcase-patternhub.result == 'failure' }}
if: ${{ !cancelled() && needs.build-showcase-patternhub.result == 'failure' }}
uses: ./.github/workflows/00-cancel-workflow.yml
secrets: inherit
needs: [build-showcase-patternhub]
Expand All @@ -228,64 +204,34 @@ jobs:
version: ${{ needs.get-playwright-version.outputs.version }}
showcase: stencil-showcase

cancel-on-failure-test-showcase-stencil:
if: ${{ needs.test-showcase-stencil.result == 'failure' }}
uses: ./.github/workflows/00-cancel-workflow.yml
secrets: inherit
needs: [test-showcase-stencil]

test-showcase-angular:
uses: ./.github/workflows/02-e2e-showcases.yml
needs: [build-showcase-angular, get-playwright-version]
with:
version: ${{ needs.get-playwright-version.outputs.version }}
showcase: angular-showcase

cancel-on-failure-test-showcase-angular:
if: ${{ needs.test-showcase-angular.result == 'failure' }}
uses: ./.github/workflows/00-cancel-workflow.yml
secrets: inherit
needs: [test-showcase-angular]

test-showcase-react:
uses: ./.github/workflows/02-e2e-showcases.yml
needs: [build-showcase-react, get-playwright-version]
with:
version: ${{ needs.get-playwright-version.outputs.version }}
showcase: react-showcase

cancel-on-failure-test-showcase-react:
if: ${{ needs.test-showcase-react.result == 'failure' }}
uses: ./.github/workflows/00-cancel-workflow.yml
secrets: inherit
needs: [test-showcase-react]

test-showcase-vue:
uses: ./.github/workflows/02-e2e-showcases.yml
needs: [build-showcase-vue, get-playwright-version]
with:
version: ${{ needs.get-playwright-version.outputs.version }}
showcase: vue-showcase

cancel-on-failure-test-showcase-vue:
if: ${{ needs.test-showcase-vue.result == 'failure' }}
uses: ./.github/workflows/00-cancel-workflow.yml
secrets: inherit
needs: [test-showcase-vue]

test-showcase-patternhub:
uses: ./.github/workflows/02-e2e-patternhub.yml
needs: [build-showcase-patternhub, get-playwright-version]
with:
version: ${{ needs.get-playwright-version.outputs.version }}
path: ${{ needs.build-showcase-patternhub.outputs.path }}

cancel-on-failure-test-showcase-patternhub:
if: ${{ needs.test-showcase-patternhub.result == 'failure' }}
uses: ./.github/workflows/00-cancel-workflow.yml
secrets: inherit
needs: [test-showcase-patternhub]

regenerate-snapshots-components:
if: ${{ !cancelled() && needs.test-components.result == 'failure' }}
uses: ./.github/workflows/02-e2e-regenerate.yml
Expand Down