Skip to content

Commit 4729075

Browse files
committed
Fix CI after migration to Gradle
See #1166
1 parent 0eff2ba commit 4729075

File tree

1 file changed

+9
-26
lines changed

1 file changed

+9
-26
lines changed

.github/workflows/ci-build.yml

Lines changed: 9 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -9,38 +9,21 @@ on:
99

1010
jobs:
1111

12-
build-jdk11:
13-
name: "Build JDK 11"
12+
build-gradle:
13+
name: "Build"
1414
runs-on: ubuntu-latest
15-
services:
16-
gitlab-instance:
17-
image: gitlab/gitlab-ce:12.9.2-ce.0
18-
env:
19-
GITLAB_OMNIBUS_CONFIG: gitlab_rails['initial_root_password']="password";gitlab_rails['lfs_enabled']=false;
20-
ports:
21-
- 8090:80
2215
steps:
23-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
2417
with:
2518
fetch-depth: 0
26-
- name: Set up JDK 11
27-
uses: actions/setup-java@v2
19+
- name: Setup JDK 11
20+
uses: actions/setup-java@v3
2821
with:
29-
distribution: adopt-hotspot
22+
distribution: temurin
3023
java-version: 11
31-
- name: Get Date
32-
id: get-date
33-
run: |
34-
echo "date=$(/bin/date -u "+%Y-%m")" >> $GITHUB_OUTPUT
35-
shell: bash
36-
- name: Cache Maven Repository
37-
id: cache-maven
38-
uses: actions/cache@v2
39-
with:
40-
path: ~/.m2/repository
41-
# refresh cache every month to avoid unlimited growth
42-
key: gitlab4jmaven-${{ steps.get-date.outputs.date }}
24+
- name: Setup Gradle
25+
uses: gradle/actions/setup-gradle@v3
4326
- name: GitLab4j verify
4427
id: gitlab4j-verify
4528
run: |
46-
./mvnw verify -B -V
29+
./gradlew build --console=PLAIN --stacktrace

0 commit comments

Comments
 (0)