Skip to content

Commit 5cbd78d

Browse files
committed
Github workflow: quick vs full build
1 parent 022c0f5 commit 5cbd78d

File tree

2 files changed

+31
-3
lines changed

2 files changed

+31
-3
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
name: Java CI
1+
name: Full Build
22

3-
on: [push, pull_request]
3+
on: [push]
44

55
jobs:
66
build:
@@ -10,7 +10,7 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
java_version: [1.8, 9, 10, 11, 12, 13]
13-
os: [windows-latest, macOS-latest, ubuntu-latest]
13+
os: [ubuntu-latest, windows-latest, macOS-latest]
1414

1515
steps:
1616
- name: Checkout

.github/workflows/quick-build.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Quick Build
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ${{ matrix.os }}
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
java_version: [1.8]
13+
os: [ubuntu-latest]
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v1
18+
- name: Set up JDK ${{ matrix.java_version }}
19+
uses: actions/setup-java@v1
20+
with:
21+
java-version: ${{ matrix.java_version }}
22+
- name: Install
23+
run: mvn -DskipTests=true clean install -q -pl '!docs,!examples' -P checkstyle
24+
- name: Build
25+
run: mvn checkstyle:checkstyle package -pl '!docs,!examples' -P checkstyle
26+
env:
27+
BUILD_PORT: 0
28+
BUILD_SECURE_PORT: 0

0 commit comments

Comments
 (0)