Skip to content

Commit a4a376f

Browse files
Merge Maven and Gradle GH actions.
1 parent 24865ca commit a4a376f

File tree

2 files changed

+29
-55
lines changed

2 files changed

+29
-55
lines changed

.github/workflows/gradle.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.
Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
1-
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2-
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
3-
4-
# This workflow uses actions that are not certified by GitHub.
5-
# They are provided by a third-party and are governed by
6-
# separate terms of service, privacy policy, and support
7-
# documentation.
8-
9-
name: Java CI with Maven
1+
name: Java CI
102

113
on:
124
push:
135
branches: ["main"]
146
pull_request:
157
branches: ["main"]
8+
schedule:
9+
- cron: '0 0 * * *'
1610

1711
jobs:
18-
build:
12+
build-maven:
1913
name: Build Maven
2014

2115
runs-on: ubuntu-latest
@@ -43,7 +37,7 @@ jobs:
4337
name: cics-java-liberty-sprintboot-jcics (Maven, Java ${{ matrix.jdk }})
4438
path: staging
4539

46-
build-wrapper:
40+
build-mvnw:
4741
name: Build Maven Wrapper
4842

4943
runs-on: ubuntu-latest
@@ -65,3 +59,27 @@ jobs:
6559
cache: maven
6660
- name: Build with Maven
6761
run: ./mvnw --batch-mode --update-snapshots --file pom.xml -Djava.version=${{ matrix.jdk }} package
62+
63+
build-gradle:
64+
name: Build Gradle
65+
66+
runs-on: ubuntu-latest
67+
continue-on-error: ${{ matrix.experimental }}
68+
strategy:
69+
matrix:
70+
jdk: [8, 11]
71+
experimental: [false]
72+
include:
73+
- jdk: 17
74+
experimental: true
75+
steps:
76+
- uses: actions/checkout@v3
77+
- name: Set up JDK ${{ matrix.jdk }}
78+
uses: actions/setup-java@v4
79+
with:
80+
java-version: ${{ matrix.jdk }}
81+
distribution: 'semeru'
82+
- name: Build with Gradle
83+
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
84+
with:
85+
arguments: build -Pjava_version=${{ matrix.jdk }}

0 commit comments

Comments
 (0)