-
Notifications
You must be signed in to change notification settings - Fork 1.3k
47 lines (42 loc) · 1.64 KB
/
ci-main.yml
File metadata and controls
47 lines (42 loc) · 1.64 KB
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
name: OpenCTI CI
on:
workflow_dispatch:
push:
pull_request:
types: [opened, synchronize, reopened]
jobs:
wf-build-image:
name: Build image
uses: ./.github/workflows/ci-docker-build.yml
with:
checkout_ref: ${{ github.event_name == 'pull_request' && format('refs/pull/{0}/merge', github.event.pull_request.number) || github.sha }}
dockerfile_target: testing
client_python_local: true
secrets: inherit
wf-backend-test:
name: Backend
uses: ./.github/workflows/ci-test-backend.yml
needs: wf-build-image
with:
checkout_ref: ${{ github.event_name == 'pull_request' && format('refs/pull/{0}/merge', github.event.pull_request.number) || github.sha }}
run-id: ${{ github.run_id }}
secrets: inherit
wf-frontend-test:
name: Frontend
uses: ./.github/workflows/ci-test-frontend.yml
with:
checkout_ref: ${{ github.event_name == 'pull_request' && format('refs/pull/{0}/merge', github.event.pull_request.number) || github.sha }}
secrets: inherit
wf-client-python-test:
name: Client Python
uses: ./.github/workflows/ci-test-client-python.yml
needs: wf-build-image
with:
checkout_ref: ${{ github.event_name == 'pull_request' && format('refs/pull/{0}/merge', github.event.pull_request.number) || github.sha }}
secrets: inherit
wf-license-check:
name: License check
uses: ./.github/workflows/ci-license-check.yml
with:
checkout_ref: ${{ github.event_name == 'pull_request' && format('refs/pull/{0}/merge', github.event.pull_request.number) || github.sha }}
secrets: inherit