-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (57 loc) · 1.22 KB
/
multi-job-dependency.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
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
# This is the job name diplayed on actions tab
name: job-dependency
on:
workflow_dispatch:
# Each job runs on its own container. So anything build on a job is not available for the subequent jobs
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Compile
run: echo "Compile application"
lint:
name: Lint
needs: build
runs-on: ubuntu-latest
steps:
- name: Linting
run: echo "Lint checks"
security:
name: Security
needs: build
runs-on: ubuntu-latest
steps:
- name: Security Scanning
run: echo "Security scanning"
unit-tests:
name: Unit Tests
needs: build
runs-on: ubuntu-latest
steps:
- name: Unit Testing
run: echo "Running unit tests"
deploy-uat:
name: Deploy UAT
needs:
- lint
- security
- unit-tests
runs-on: ubuntu-latest
steps:
- name: Deploy
run: echo "Deploying to UAT"
e2e:
name: E2E
needs: deploy-uat
runs-on: ubuntu-latest
steps:
- name: End-to-End Testing
run: echo "Running E2E tests"
deploy-prd:
name: Deploy PRD
needs: e2e
runs-on: ubuntu-latest
steps:
- name: Deploy PRD
run: echo "Deploying to PRD"