-
Notifications
You must be signed in to change notification settings - Fork 10
84 lines (71 loc) · 2.47 KB
/
default.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
---
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
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]
test-foundations:
uses: ./.github/workflows/02-e2e-foundations.yml
needs: [build-packages]
build-showcases:
uses: ./.github/workflows/01-build-showcases.yml
needs: [build-packages]
test-showcases:
uses: ./.github/workflows/02-e2e-showcases.yml
needs: [build-showcases]
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
needs: [test-components, test-showcases, test-foundations]
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