Skip to content

Commit 7b545a6

Browse files
authored
Merge pull request #152 from sir-gon/develop
Develop
2 parents 957d324 + 6dbb821 commit 7b545a6

File tree

4 files changed

+63
-13
lines changed

4 files changed

+63
-13
lines changed

.github/workflows/gradle.yml renamed to .github/workflows/java-gradle-coverage.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
66
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
77

8-
name: Java CI with Gradle
8+
name: Java CI Coverage with Gradle
99

1010
on:
1111
push:
@@ -21,24 +21,25 @@ jobs:
2121

2222
strategy:
2323
matrix:
24-
os: [ubuntu-latest, macos-latest, windows-latest]
24+
os: [ubuntu-latest]
2525
runs-on: ${{ matrix.os }}
2626

2727
steps:
2828
- uses: actions/checkout@v4
29-
- name: Set up JDK 20
29+
- name: Set up JDK
3030
uses: actions/setup-java@v4
3131
with:
32-
java-version: '20'
32+
java-version: '21'
3333
distribution: temurin
3434

3535
- name: Validate Gradle wrapper
36-
uses: gradle/wrapper-validation-action@v3
36+
uses: gradle/actions/wrapper-validation@v3
3737

38-
- name: Setup and execute Gradle 'test' task
39-
uses: gradle/gradle-build-action@v3
40-
with:
41-
arguments: --console=verbose clean checkstyleMain checkstyleTest test
38+
- name: Setup Gradle
39+
uses: gradle/actions/setup-gradle@v3
40+
41+
- name: Runt tests
42+
run: ./gradlew --console=verbose test
4243

4344
- name: Upload coverage reports to Codecov with GitHub Action
4445
uses: codecov/codecov-action@v4

.github/workflows/java-gradle.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
6+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
7+
8+
name: Java CI Tests with Gradle
9+
10+
on:
11+
push:
12+
branches: [ main, develop, feature/* ]
13+
pull_request:
14+
branches: [ main ]
15+
16+
permissions:
17+
contents: read
18+
19+
jobs:
20+
gradle:
21+
22+
strategy:
23+
matrix:
24+
os: [ubuntu-latest, macos-latest, windows-latest]
25+
java: [ '20', '21', '22' ]
26+
runs-on: ${{ matrix.os }}
27+
28+
steps:
29+
- uses: actions/checkout@v4
30+
- name: Set up JDK
31+
uses: actions/setup-java@v4
32+
with:
33+
java-version: ${{ matrix.java }}
34+
distribution: temurin
35+
36+
- name: Validate Gradle wrapper
37+
uses: gradle/actions/wrapper-validation@v3
38+
39+
- name: Setup Gradle
40+
uses: gradle/actions/setup-gradle@v3
41+
42+
- name: Clean
43+
run: ./gradlew --console=verbose clean
44+
45+
- name: Lint
46+
run: ./gradlew --console=verbose checkstyleMain checkstyleTest
47+
48+
- name: Runt tests
49+
run: ./gradlew --console=verbose test

.github/workflows/sonarcloud.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
- uses: actions/checkout@v4
1717
with:
1818
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
19-
- name: Set up JDK 20
19+
- name: Set up JDK
2020
uses: actions/setup-java@v4
2121
with:
22-
java-version: 20
22+
java-version: 21
2323
distribution: temurin # Alternative distribution options are available
2424
- name: Cache SonarCloud packages
2525
uses: actions/cache@v4

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
###############################################################################
2-
FROM gradle:8.4.0-jdk20-alpine AS development
2+
FROM gradle:8.7.0-jdk21-alpine AS development
33

44
RUN apk add --update --no-cache make
55

66
WORKDIR /app
77

88
###############################################################################
9-
FROM node:20.2.0-alpine3.16 AS lint
9+
FROM node:22.1.0-alpine3.19 AS lint
1010

1111
ENV WORKDIR=/app
1212
WORKDIR ${WORKDIR}

0 commit comments

Comments
 (0)