Skip to content

Commit d9e229e

Browse files
authored
Merge pull request #3 from campeis/campeis-ci
Adds CI
2 parents 1964974 + cc09137 commit d9e229e

File tree

3 files changed

+39
-11
lines changed

3 files changed

+39
-11
lines changed

.github/workflows/gradle.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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 with Gradle
9+
10+
on:
11+
push:
12+
branches: [ "master" ]
13+
pull_request:
14+
branches: [ "master" ]
15+
16+
jobs:
17+
build:
18+
19+
runs-on: ubuntu-latest
20+
permissions:
21+
contents: read
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
- name: Set up JDK
26+
uses: actions/setup-java@v4
27+
with:
28+
java-version: '18'
29+
distribution: 'temurin'
30+
- name: Build
31+
run: ./gradlew build
32+
- name: Test
33+
run: ./gradlew test

build.gradle

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'org.jetbrains.kotlin.jvm' version '1.2.51'
2+
id "org.jetbrains.kotlin.jvm" version "1.9.22"
33
}
44

55
group 'it.campeis'
@@ -10,9 +10,8 @@ repositories {
1010
}
1111

1212
dependencies {
13-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
14-
testCompile('org.junit.jupiter:junit-jupiter-api:5.2.0')
15-
testRuntime('org.junit.jupiter:junit-jupiter-engine:5.2.0')
13+
testImplementation 'org.junit.jupiter:junit-jupiter:5.7.1'
14+
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
1615
}
1716

1817
test {
@@ -21,15 +20,11 @@ test {
2120
testLogging {
2221
events "passed", "skipped", "failed"
2322
}
24-
25-
reports {
26-
html.enabled = true
27-
}
2823
}
2924

3025
compileKotlin {
31-
kotlinOptions.jvmTarget = "1.8"
26+
kotlinOptions.jvmTarget = "18"
3227
}
3328
compileTestKotlin {
34-
kotlinOptions.jvmTarget = "1.8"
29+
kotlinOptions.jvmTarget = "18"
3530
}

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.8.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip

0 commit comments

Comments
 (0)