Skip to content

Commit 9c2febb

Browse files
author
Gonzalo Diaz
committed
[CONFIG] Java script for github-actions. Split in 2: One for Coverage, the another to run multi-version/multi-OS tests.
1 parent 957d324 commit 9c2febb

File tree

2 files changed

+43
-2
lines changed

2 files changed

+43
-2
lines changed

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

Lines changed: 2 additions & 2 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,7 +21,7 @@ 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:

.github/workflows/java-gradle.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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+
runs-on: ${{ matrix.os }}
26+
27+
steps:
28+
- uses: actions/checkout@v4
29+
- name: Set up JDK 20
30+
uses: actions/setup-java@v4
31+
with:
32+
java-version: '20'
33+
distribution: temurin
34+
35+
- name: Validate Gradle wrapper
36+
uses: gradle/wrapper-validation-action@v3
37+
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

0 commit comments

Comments
 (0)