-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (48 loc) · 1.34 KB
/
pr_develop.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: Develop PR Checks
on:
pull_request:
branches: [develop]
types:
- opened
- synchronize
- reopened
- ready_for_review
jobs:
is_draft:
if: github.event.pull_request.draft == true
name: Check if PR is a draft
runs-on: ubuntu-latest
steps:
- name: Check if PR is a draft
run: echo "This PR is a draft"
check_formatting:
name: Formatting
if: github.event.pull_request.draft != true
uses: ./.github/workflows/check_formatting.yml
check_compilation:
name: Compilation
if: github.event.pull_request.draft != true
uses: ./.github/workflows/check_neko-top.yml
with:
neko-version: "develop"
check_complete:
name: Develop PR Ready
if: github.event.pull_request.draft != true && ${{ always() }}
needs:
- check_formatting
- check_compilation
runs-on: ubuntu-latest
env:
check_formatting: ${{ needs.check_formatting.result }}
check_compilation: ${{ needs.check_compilation.result }}
steps:
- name: All checks passed
run: |
if [ "$check_formatting" != "success" ]; then
echo "Formatting check failed"
exit 1
elif [ "$check_compilation" != "success" ]; then
echo "Compilation check failed"
exit 1
fi
echo "All checks passed"