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
8 changes: 4 additions & 4 deletions .github/workflows/02-e2e-regenerate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,31 +83,31 @@ jobs:
fi

- name: 🆙 Upload components
if: always() && inputs.type == 'components'
if: ${{ !cancelled() && inputs.type == 'components' }}
uses: actions/upload-artifact@v4
with:
name: snapshots-${{ inputs.type }}
path: ./__snapshots__/*/component
retention-days: 7

- name: 🆙 Upload foundations
if: always() && inputs.type == 'foundations'
if: ${{ !cancelled() && inputs.type == 'foundations' }}
uses: actions/upload-artifact@v4
with:
name: snapshots-${{ inputs.type }}
path: ./__snapshots__/foundations
retention-days: 7

- name: 🆙 Upload patternhub
if: always() && inputs.type == 'patternhub'
if: ${{ !cancelled() && inputs.type == 'patternhub' }}
uses: actions/upload-artifact@v4
with:
name: snapshots-${{ inputs.type }}
path: ./__snapshots__/*/patternhub
retention-days: 7

- name: 🆙 Upload showcase
if: always() && inputs.type == 'showcases'
if: ${{ !cancelled() && inputs.type == 'showcases' }}
uses: actions/upload-artifact@v4
with:
name: snapshots-${{ inputs.type }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,37 +150,37 @@
path: ${{ needs.build-showcase-patternhub.outputs.path }}

regenerate-snapshots-components:
if: always() && needs.test-components.result == 'failure'
if: ${{ !cancelled() && needs.test-components.result == 'failure' }}
uses: ./.github/workflows/02-e2e-regenerate.yml
with:
version: ${{ needs.get-playwright-version.outputs.version }}
type: components
needs: [test-components, get-playwright-version]

regenerate-snapshots-foundations:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
if: always() && needs.test-foundations.result == 'failure'
if: ${{ !cancelled() && needs.test-foundations.result == 'failure' }}
uses: ./.github/workflows/02-e2e-regenerate.yml
with:
version: ${{ needs.get-playwright-version.outputs.version }}
type: foundations
needs: [test-foundations, get-playwright-version]

regenerate-snapshots-patternhub:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
if: always() && needs.test-showcase-patternhub.result == 'failure'
if: ${{ !cancelled() && needs.test-showcase-patternhub.result == 'failure' }}
uses: ./.github/workflows/02-e2e-regenerate.yml
with:
version: ${{ needs.get-playwright-version.outputs.version }}
path: ${{ needs.build-showcase-patternhub.outputs.path }}
type: patternhub
needs:
[
build-showcase-patternhub,
test-showcase-patternhub,
get-playwright-version
]

# This job runs only if aria-snapshots were changed compared to main or if it runs on main branch
test-screen-reader:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
if: |
needs.test-showcase-react.outputs.aria-snapshots-changed-to-main == 'true' ||
github.event.pull_request == null
Expand All @@ -191,7 +191,7 @@

regenerate-snapshots:
if: |
always() && (
!cancelled() && (
needs.test-showcase-angular.result == 'failure' ||
needs.test-showcase-react.result == 'failure' ||
needs.test-showcase-vue.result == 'failure' ||
Expand Down Expand Up @@ -238,73 +238,73 @@
patternhub: ${{ needs.regenerate-snapshots-patternhub.result == 'success' }}

checks-done:
if: ${{ always() }}
if: ${{ !cancelled() }}
runs-on: ubuntu-24.04 # Use Ubuntu 24.04 explicitly
steps:
- name: 🎉 Checks done
run: |
resultBuildShowcaseStencil="${{ needs.build-showcase-stencil.result }}"
resultBuildShowcaseAngular="${{ needs.build-showcase-angular.result }}"
resultBuildShowcaseAngularSSR="${{ needs.build-showcase-angular-ssr.result }}"
resultBuildShowcaseReact="${{ needs.build-showcase-react.result }}"
resultBuildShowcaseNext="${{ needs.build-showcase-next.result }}"
resultBuildShowcaseVue="${{ needs.build-showcase-vue.result }}"
resultBuildShowcaseNuxt="${{ needs.build-showcase-nuxt.result }}"
resultBuildShowcasePatternhub="${{ needs.build-showcase-patternhub.result }}"
resultBuildOutputs="${{ needs.build-outputs.result }}"
resultTestPackages="${{ needs.test-components.result }}"
resultTestFoundations="${{ needs.test-foundations.result }}"
resultTestShowcaseStencil="${{ needs.test-showcase-stencil.result }}"
resultTestShowcaseAngular="${{ needs.test-showcase-angular.result }}"
resultTestShowcaseReact="${{ needs.test-showcase-react.result }}"
resultTestShowcaseVue="${{ needs.test-showcase-vue.result }}"
resultTestShowcasePatternhub="${{ needs.test-showcase-patternhub.result }}"
resultTestScreenReader="${{ needs.test-screen-reader.result }}"
if [[ $resultTestFoundations == "success" ]] && \
[[ $resultTestScreenReader == "success" || $resultTestScreenReader == "skipped" ]] && \
[[ $resultTestShowcaseStencil == "success" ]] && \
[[ $resultTestShowcaseAngular == "success" ]] && \
[[ $resultTestShowcaseReact == "success" ]] && \
[[ $resultTestShowcaseVue == "success" ]] && \
[[ $resultTestShowcasePatternhub == "success" ]] && \
[[ $resultTestPackages == "success" ]] && \
[[ $resultBuildOutputs == "success" ]] && \
[[ $resultBuildShowcaseStencil == "success" ]] && \
[[ $resultBuildShowcaseAngular == "success" ]] && \
[[ $resultBuildShowcaseAngularSSR == "success" ]] && \
[[ $resultBuildShowcaseReact == "success" ]] && \
[[ $resultBuildShowcaseNext == "success" ]] && \
[[ $resultBuildShowcaseVue == "success" ]] && \
[[ $resultBuildShowcaseNuxt == "success" ]] && \
[[ $resultBuildShowcasePatternhub == "success" ]]; then
echo "🎉 All tests were successful."
exit 0
else
echo "Some tests were failing."
exit 1
fi
needs:
[
build-showcase-stencil,
build-showcase-angular,
build-showcase-angular-ssr,
build-showcase-react,
build-showcase-next,
build-showcase-vue,
build-showcase-nuxt,
build-showcase-patternhub,
build-outputs,
test-components,
test-showcase-stencil,
test-showcase-angular,
test-showcase-react,
test-showcase-vue,
test-showcase-patternhub,
test-foundations,
test-screen-reader
]

deploy:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
uses: ./.github/workflows/03-deploy-gh-pages.yml
if: ${{ !cancelled() && github.actor != 'dependabot[bot]' && (github.event.pull_request == null || github.event.pull_request.head.repo.owner.login == 'db-ux-design-system') }}
needs: [checks-done]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,73 +143,73 @@
version: ${{ needs.get-playwright-version.outputs.version }}

checks-done:
if: ${{ always() }}
if: ${{ !cancelled() }}
runs-on: ubuntu-24.04 # Use Ubuntu 24.04 explicitly
steps:
- name: 🎉 Checks done
run: |
resultBuildShowcaseStencil="${{ needs.build-showcase-stencil.result }}"
resultBuildShowcaseAngular="${{ needs.build-showcase-angular.result }}"
resultBuildShowcaseAngularSSR="${{ needs.build-showcase-angular-ssr.result }}"
resultBuildShowcaseReact="${{ needs.build-showcase-react.result }}"
resultBuildShowcaseNext="${{ needs.build-showcase-next.result }}"
resultBuildShowcaseVue="${{ needs.build-showcase-vue.result }}"
resultBuildShowcaseNuxt="${{ needs.build-showcase-nuxt.result }}"
resultBuildShowcasePatternhub="${{ needs.build-showcase-patternhub.result }}"
resultBuildOutputs="${{ needs.build-outputs.result }}"
resultTestPackages="${{ needs.test-components.result }}"
resultTestFoundations="${{ needs.test-foundations.result }}"
resultTestShowcaseStencil="${{ needs.test-showcase-stencil.result }}"
resultTestShowcaseAngular="${{ needs.test-showcase-angular.result }}"
resultTestShowcaseReact="${{ needs.test-showcase-react.result }}"
resultTestShowcaseVue="${{ needs.test-showcase-vue.result }}"
resultTestShowcasePatternhub="${{ needs.test-showcase-patternhub.result }}"
resultTestScreenReader="${{ needs.test-screen-reader.result }}"
if [[ $resultTestFoundations == "success" ]] && \
[[ $resultTestScreenReader == "success" ]] && \
[[ $resultTestShowcaseStencil == "success" ]] && \
[[ $resultTestShowcaseAngular == "success" ]] && \
[[ $resultTestShowcaseReact == "success" ]] && \
[[ $resultTestShowcaseVue == "success" ]] && \
[[ $resultTestShowcasePatternhub == "success" ]] && \
[[ $resultTestPackages == "success" ]] && \
[[ $resultBuildOutputs == "success" ]] && \
[[ $resultBuildShowcaseStencil == "success" ]] && \
[[ $resultBuildShowcaseAngular == "success" ]] && \
[[ $resultBuildShowcaseAngularSSR == "success" ]] && \
[[ $resultBuildShowcaseReact == "success" ]] && \
[[ $resultBuildShowcaseNext == "success" ]] && \
[[ $resultBuildShowcaseVue == "success" ]] && \
[[ $resultBuildShowcaseNuxt == "success" ]] && \
[[ $resultBuildShowcasePatternhub == "success" ]]; then
echo "🎉 All tests were successful."
exit 0
else
echo "Some tests were failing."
exit 1
fi
needs:
[
build-showcase-stencil,
build-showcase-angular,
build-showcase-angular-ssr,
build-showcase-react,
build-showcase-next,
build-showcase-vue,
build-showcase-nuxt,
build-showcase-patternhub,
build-outputs,
test-components,
test-showcase-stencil,
test-showcase-angular,
test-showcase-react,
test-showcase-vue,
test-showcase-patternhub,
test-foundations,
test-screen-reader
]

deploy:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
uses: ./.github/workflows/03-deploy-gh-pages.yml
needs: [checks-done, get-publish-version]
with:
Expand Down