feat: changed the consumption how to import required styles #11573
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Default Pipeline | |
on: | |
pull_request: | |
push: | |
branches: | |
- "main" | |
jobs: | |
init: | |
uses: ./.github/workflows/00-init.yml | |
scan-secrets: | |
if: github.event.pull_request == null || github.event.pull_request.head.repo.owner.login == 'db-ui' | |
uses: ./.github/workflows/00-scan-secrets.yml | |
get-playwright-version: | |
uses: ./.github/workflows/01-get-playwright-version.yml | |
needs: [init] | |
lint: | |
uses: ./.github/workflows/01-lint.yml | |
needs: [init] | |
build-packages: | |
uses: ./.github/workflows/01-build-packages.yml | |
needs: [init] | |
build-outputs: | |
uses: ./.github/workflows/01-build-outputs.yml | |
needs: [build-packages] | |
test-components: | |
uses: ./.github/workflows/02-e2e.yml | |
needs: [build-packages, get-playwright-version] | |
with: | |
version: ${{ needs.get-playwright-version.outputs.version }} | |
test-foundations: | |
uses: ./.github/workflows/02-e2e-foundations.yml | |
needs: [build-packages, get-playwright-version] | |
with: | |
version: ${{ needs.get-playwright-version.outputs.version }} | |
build-showcases: | |
uses: ./.github/workflows/01-build-showcases.yml | |
needs: [build-packages] | |
test-showcases: | |
uses: ./.github/workflows/02-e2e-showcases.yml | |
needs: [build-showcases, get-playwright-version] | |
with: | |
version: ${{ needs.get-playwright-version.outputs.version }} | |
regenerate-snapshots: | |
if: always() && (needs.test-components.result == 'failure' || needs.test-foundations.result == 'failure' || needs.test-showcases.result == 'failure') | |
uses: ./.github/workflows/02-e2e-regenerate.yml | |
with: | |
version: ${{ needs.get-playwright-version.outputs.version }} | |
needs: | |
[ | |
test-components, | |
test-showcases, | |
test-foundations, | |
get-playwright-version | |
] | |
checks-done: | |
if: ${{ always() }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🎉 Checks done | |
run: | | |
resultBuildShowcases="${{ needs.build-showcases.result }}" | |
resultBuildOutputs="${{ needs.build-outputs.result }}" | |
resultTestPackages="${{ needs.test-components.result }}" | |
resultTestShowcases="${{ needs.test-showcases.result }}" | |
resultTestFoundations="${{ needs.test-foundations.result }}" | |
if [[ $resultTestFoundations == "success" && $resultTestShowcases == "success" && $resultBuildShowcases == "success" && $resultBuildOutputs == "success" && $resultTestPackages == "success" ]]; then | |
echo "🎉 All tests were successful." | |
exit 0 | |
else | |
echo "Some tests were failing." | |
exit 1 | |
fi | |
needs: | |
[ | |
build-showcases, | |
build-outputs, | |
test-components, | |
test-showcases, | |
test-foundations | |
] | |
deploy: | |
uses: ./.github/workflows/03-deploy-gh-pages.yml | |
if: ${{ github.actor != 'dependabot[bot]' && (github.event.pull_request == null || github.event.pull_request.head.repo.owner.login == 'db-ui') }} | |
needs: [checks-done] | |
with: | |
release: false | |
preRelease: false |