-
Notifications
You must be signed in to change notification settings - Fork 12
49 lines (46 loc) · 1.3 KB
/
pull_request_push_build.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
name: Windup PR builder
on:
pull_request:
branches:
- master
- 'releases/**'
push:
branches: [ master ]
jobs:
windup-maven-plugin-build:
strategy:
fail-fast: false
matrix:
jdk-distribution: [ temurin ]
os: [ubuntu-latest, windows-latest, macos-latest]
java-version: [ 11, 17 ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout windup project
uses: actions/checkout@v3
with:
repository: windup/windup
ref: ${{ github.base_ref }}
path: windup
- name: Checkout windup-rulesets project
uses: actions/checkout@v3
with:
repository: windup/windup-rulesets
ref: ${{ github.base_ref }}
path: windup-rulesets
- name: Checkout PR code
uses: actions/checkout@v3
with:
path: windup-maven-plugin
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: ${{ matrix.jdk-distribution }}
cache: 'maven'
- name: Build Windup dependencies
run: |
mvn install -DskipTests -f windup
mvn install -DskipTests -f windup-rulesets
- name: Maven build
run: mvn clean install -B -f windup-maven-plugin