-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.checkstyle
88 lines (77 loc) · 2.64 KB
/
.checkstyle
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
83
84
85
86
87
88
on:
pull_request:
types: [opened, synchronize]
jobs:
Checkstyle-evaluator:
runs-on: self-hosted
name: Checkstyle
steps:
- name: Fetch project repository
uses: actions/checkout@v2
- name: Fetch Blocked Files Checkout action
uses: actions/checkout@v2
with:
repository: betrybe/blocked-files-checkout-action
ref: v2
token: ${{ secrets.GIT_HUB_PAT }}
path: .github/actions/blocked-files-checkout
- name: Restore protected files
uses: ./.github/actions/blocked-files-checkout
with:
restore_branch: 'main'
- name: Fetch Java Checkstyle evaluator
uses: actions/checkout@v2
with:
repository: betrybe/java-checkstyle-action
ref: v1
token: ${{ secrets.GIT_HUB_PAT }}
path: .github/actions/java-checkstyle-action
- name: Run Java Checkstyle evaluator
id: checkstyle-evaluator
uses: ./.github/actions/java-checkstyle-action
with:
token: ${{ secrets.GITHUB_TOKEN }}
pr_number: ${{ github.event.pull_request.number }}
Evaluator:
runs-on: self-hosted
needs: [Checkstyle-evaluator]
name: Evaluator Job
steps:
- name: Fetch project repository
uses: actions/checkout@v2
- name: Fetch Blocked Files Checkout action
uses: actions/checkout@v2
with:
repository: betrybe/blocked-files-checkout-action
ref: v2
token: ${{ secrets.GIT_HUB_PAT }}
path: .github/actions/blocked-files-checkout
- name: Fetch JUnit evaluator
uses: actions/checkout@v2
with:
repository: betrybe/junit-evaluator-action
ref: v1
token: ${{ secrets.GIT_HUB_PAT }}
path: .github/actions/junit-evaluator
- name: Fetch Store evaluation
uses: actions/checkout@v2
with:
repository: betrybe/store-evaluation-action
ref: v4.2
token: ${{ secrets.GIT_HUB_PAT }}
path: .github/actions/store-evaluation
- name: Restore protected files
uses: ./.github/actions/blocked-files-checkout
with:
restore_branch: 'main'
- name: Run JUnit evaluation
id: evaluator
uses: ./.github/actions/junit-evaluator
with:
pr_author_username: ${{ github.event.pull_request.user.login }}
- name: Run Store evaluation
uses: ./.github/actions/store-evaluation
with:
evaluation-data: ${{ steps.evaluator.outputs.result }}
environment: production
pr-number: ${{ github.event.pull_request.number }}