-
Notifications
You must be signed in to change notification settings - Fork 1.1k
38 lines (35 loc) · 918 Bytes
/
ci.yaml
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
name: CI
on:
workflow_call:
workflow_dispatch:
merge_group:
pull_request:
branches: [main, dev, 'release/**']
push:
branches: [main, dev, 'release/**']
permissions: read-all
jobs:
pytest:
uses: ./.github/workflows/pytest.yaml
secrets: inherit
lint-backend:
uses: ./.github/workflows/lint-backend.yaml
secrets: inherit
e2e-tests:
uses: ./.github/workflows/e2e-tests.yaml
secrets: inherit
lint-ui:
uses: ./.github/workflows/lint-ui.yaml
secrets: inherit
ci:
runs-on: ubuntu-latest
name: Run CI
if: always() # This ensures the job always runs
needs: [lint-backend, pytest, lint-ui, e2e-tests]
steps:
# Propagate failure
- name: Check dependent jobs
if: contains(needs.*.result, 'success') != true || contains(needs.*.result, 'skipped')
run: |
echo "Not all required jobs succeeded"
exit 1