From 67c6567cdb9113720fe0fa4770a11a5d1aa6298d Mon Sep 17 00:00:00 2001 From: Arthur Werbrouck Date: Thu, 29 Feb 2024 13:38:18 +0100 Subject: [PATCH] testing automated testing --- .github/workflows/docker_test.yml | 14 ++++++++++++++ backend/app/build.gradle | 7 ++++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/docker_test.yml diff --git a/.github/workflows/docker_test.yml b/.github/workflows/docker_test.yml new file mode 100644 index 00000000..2066d9c0 --- /dev/null +++ b/.github/workflows/docker_test.yml @@ -0,0 +1,14 @@ +name: running test with github actions +on: workflow_dispatch + +jobs: + test: + runs-on: ubuntu-latest + name: run unit tests on java 17 + steps: + - uses: actions/checkout@master + - name: setup java + uses: actions/setup-java@v1 + with: + java-version: 17 + - run: gradle test diff --git a/backend/app/build.gradle b/backend/app/build.gradle index 700530b7..04c8ec16 100644 --- a/backend/app/build.gradle +++ b/backend/app/build.gradle @@ -38,6 +38,11 @@ dependencies { testImplementation 'org.springframework.security:spring-security-test' } -tasks.named('test') { +tasks.named('test',Test) { useJUnitPlatform() + maxHeapSize = '1G' + + testLogging { + events "passed" + } }