-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (40 loc) · 927 Bytes
/
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
name: PR
on:
merge_group:
pull_request:
branches:
- master
jobs:
commitlint:
name: Check Commit Message
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v6
with:
configFile: package.json
failOnWarnings: true
build:
name: Build
needs: [commitlint]
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
jdk: [21]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Setup JDK ${{ matrix.jdk }}
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.jdk }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- name: Build with Gradle
run: ./gradlew clean build