forked from lucee/extension-hibernate
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (45 loc) · 1.4 KB
/
pr.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
name: Pull Requests
on:
push:
branches-ignore:
- main
- master
- development
- release/**
pull_request:
branches:
- development
jobs:
tests:
uses: ./.github/workflows/tests.yml
permissions:
contents: read
issues: read
checks: write
pull-requests: write
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
# Most incoming PRs from forks will not have the secrets or permissions needed to commit changes. Hence, we do formatter:validate and force the developer to fix the formatting themselves.
checkJavaFormat:
name: Validate Java Format
runs-on: ubuntu-20.04
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
- name: Validate Java format
run: mvn --batch-mode -f pom.xml formatter:validate
# Most incoming PRs from forks will not have the secrets or permissions needed to commit changes. Hence, we do format:check and force the developer to fix the formatting themselves.
checkCFMLFormat:
name: Validate CFML Format
runs-on: ubuntu-20.04
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- uses: Ortus-Solutions/[email protected]
with:
cmd: run-script format:check