Skip to content

Commit

Permalink
Merge pull request #2 from chris-schmitz/add-ci-via-github-actions
Browse files Browse the repository at this point in the history
Add ci via GitHub actions
  • Loading branch information
chris-schmitz authored Dec 27, 2023
2 parents 2af162e + 8ee67d7 commit 3285c94
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle

name: Java CI with Gradle

on: [ "push" ]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Build with Gradle
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
with:
arguments: build
13 changes: 13 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import groovy.lang.MissingPropertyException
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
Expand Down Expand Up @@ -44,8 +45,20 @@ tasks.withType<KotlinCompile> {

tasks.withType<Test> {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")

showExceptions = true
exceptionFormat = TestExceptionFormat.FULL
showCauses = true
showStackTraces = true

showStandardStreams = false
}
}



tasks {
val dockerComposeUp by creating(Task::class) {
description = "Builds app, spins up docker containers, and launches the API."
Expand Down
1 change: 0 additions & 1 deletion gradle.properties

This file was deleted.

0 comments on commit 3285c94

Please sign in to comment.