-
-
Notifications
You must be signed in to change notification settings - Fork 689
48 lines (41 loc) · 1.54 KB
/
gradle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Java CI with Gradle
on: [push, pull_request, workflow_dispatch]
defaults:
run:
working-directory: exercises
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
- name: Set up JDK 1.17
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0
with:
java-version: 17
distribution: "temurin"
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Check if tests compile cleanly with starter sources
run: ./gradlew compileStarterTestJava --continue
- name: Run checkstyle
run: ./gradlew check --exclude-task test --continue
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
- name: Set up JDK 1.17
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0
with:
java-version: 17
distribution: "temurin"
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Test all reference implementations with Gradle
run: ./gradlew test --continue
- name: Create test summary
uses: test-summary/action@62bc5c68de2a6a0d02039763b8c754569df99e3f
with:
paths: "**/build/test-results/test/*.xml"
if: always()