This repository has been archived by the owner on Apr 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 316
82 lines (73 loc) · 2.34 KB
/
cicd_pipeline.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
name: "CI/CD Pipeline"
on:
push:
branches:
- master
- 'lse-release/**'
- 'ls-release/**'
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
branches:
- master
- 'lse-release/**'
- 'ls-release/**'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.pull_request.head.ref || github.ref_name }}
cancel-in-progress: true
jobs:
build_bundle:
name: "Build JS Bundle"
if: github.event_name == 'push' || github.event.pull_request.draft == false
uses: ./.github/workflows/build_bundle.yml
with:
sha: ${{ github.event.pull_request.head.sha || github.event.after }}
build_for_coverage:
name: "Build JS Bundle"
if: github.event_name == 'push' || github.event.pull_request.draft == false
uses: ./.github/workflows/build_bundle.yml
with:
sha: ${{ github.event.pull_request.head.sha || github.event.after }}
build_for_coverage: true
run_e2e:
name: "Tests"
if: github.event_name == 'push' || github.event.pull_request.draft == false
uses: ./.github/workflows/e2e_tests.yml
needs:
- build_for_coverage
with:
sha: ${{ github.event.pull_request.head.sha || github.event.after }}
run_functional:
name: "Tests"
if: github.event_name == 'push' || github.event.pull_request.draft == false
uses: ./.github/workflows/fun_tests.yml
needs:
- build_for_coverage
with:
sha: ${{ github.event.pull_request.head.sha || github.event.after }}
secrets: inherit
run_unit:
name: "Tests"
if: github.event_name == 'push' || github.event.pull_request.draft == false
uses: ./.github/workflows/unit_tests.yml
with:
sha: ${{ github.event.pull_request.head.sha || github.event.after }}
run_coverage:
name: "Coverage"
if: github.event_name == 'push' || github.event.pull_request.draft == false
uses: ./.github/workflows/tests_coverage.yml
needs:
- run_unit
- run_e2e
with:
sha: ${{ github.event.pull_request.head.sha || github.event.after }}
secrets: inherit
run_lint:
name: "Lint"
if: github.event_name == 'push' || github.event.pull_request.draft == false
uses: ./.github/workflows/eslint.yml
with:
sha: ${{ github.event.pull_request.head.sha || github.event.after }}