-
Notifications
You must be signed in to change notification settings - Fork 1
71 lines (61 loc) · 2.04 KB
/
Copy pathpull_requests.yml
File metadata and controls
71 lines (61 loc) · 2.04 KB
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
name: Pull Request
on:
pull_request:
branches:
- 'main'
- 'jaspr/**/*'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
check-commit-message:
name: Check Commit Message
runs-on: ubuntu-latest
steps:
- name: Check commit message line length
uses: gsactions/commit-message-checker@16fa2d5de096ae0d35626443bcd24f1e756cafee # v2.0.0
with:
pattern: "^.{0,74}(\n.*)*$"
error: 'Your commit subject should not be longer than 74 characters.'
excludeDescription: 'true'
excludeTitle: 'true'
checkAllCommitMessages: 'true'
accessToken: ${{ secrets.GITHUB_TOKEN }}
- name: Check commit subject does not end with a period
uses: gsactions/commit-message-checker@16fa2d5de096ae0d35626443bcd24f1e756cafee
with:
pattern: '.+[^\.]$'
error: 'Your commit subject should not end in a period.'
excludeDescription: 'true'
excludeTitle: 'true'
checkAllCommitMessages: 'true'
accessToken: ${{ secrets.GITHUB_TOKEN }}
gradle:
name: Gradle Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Setup Java (Graal VM)
uses: renatoathaydes/setup-java-sdkman@2.1.1
with:
# noinspection YAMLIncompatibleTypes
java-version: "21.0.1-graalce"
- name: Setup Gradle
uses: gradle/gradle-build-action@ac2d340dc04d9e1113182899e983b5400c17cda1 # v3.5.0
- name: Run Tests
run: ./gradlew build --configure-on-demand --max-workers=4
shell: bash
- name: Upload Event File
if: always()
uses: actions/upload-artifact@v7
with:
name: Event File
path: ${{ github.event_path }}
- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v7
with:
name: Test Results
path: "**/build/test-results/**/*.xml"