-
Notifications
You must be signed in to change notification settings - Fork 3
28 lines (28 loc) · 841 Bytes
/
build.yml
File metadata and controls
28 lines (28 loc) · 841 Bytes
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
name: Build pull request
on:
pull_request:
branches:
- master
jobs:
maven-verify:
if: github.event.pull_request.head.repo.fork == true
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- uses: actions/setup-java@v5
with:
java-version: 17.0.13
distribution: liberica
- name: Cache Maven dependencies
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
${{ runner.os }}-maven-
${{ runner.os }}-
- name: Run maven build
run: mvn install -PprettierCheck -Dprettier.nodePath=node -Dprettier.npmPath=npm