-
Notifications
You must be signed in to change notification settings - Fork 55
57 lines (44 loc) · 1.27 KB
/
on_pr_from_develop_to_master.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
name: Validate PR from develop branch to master branch
on:
pull_request:
types:
- opened
- edited
- synchronize
branches:
- master
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@main
- name: Set up Xcode
if: always()
uses: ./.github/mini_flows/setup_xcode
- name: Install dependencies
if: always()
uses: ./.github/mini_flows/install_dependencies
- name: Build project
if: always()
uses: ./.github/mini_flows/build_project
- name: Run tests
if: always()
uses: ./.github/mini_flows/run_tests
- name: Validate PR Title
if: always()
run: |
PR_TITLE="${{ github.event.pull_request.title }}"
if [[ ! $PR_TITLE =~ ^Release+ ]]; then
echo "Invalid PR title format. Please use 'Release-{version}' format."
exit 1
fi
- name: Validate PR Description
if: always()
uses: ./.github/mini_flows/validate_pr_description
- name: Mandatory File Changes
if: always()
uses: ./.github/mini_flows/mandatory_filechanges
- name: Run pod lib lint
if: always()
uses: ./.github/mini_flows/pod_lib_lint