From 1a8b1f04435fc0e640b8adfe14a00383ff3b34b0 Mon Sep 17 00:00:00 2001 From: boroda4436 Date: Fri, 13 Oct 2023 15:23:53 +0300 Subject: [PATCH 1/2] configure CI --- .github/workflows/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..a2c054a1 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,18 @@ +name: Java CI + +on: [push, pull_request] + +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: 'adopt' + cache: maven + - name: Build with Maven + run: mvn --batch-mode --update-snapshots verify From 9a3d52c5e75cd2988590bb7884c6d076f87c3ca2 Mon Sep 17 00:00:00 2001 From: boroda4436 Date: Fri, 13 Oct 2023 15:27:25 +0300 Subject: [PATCH 2/2] update application.properties files --- src/main/resources/application.properties | 6 +----- src/test/resources/application.properties | 5 +++++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index bc2fdde8..8b137891 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,5 +1 @@ -spring.datasource.url=jdbc:h2:mem:testdb -spring.datasource.driverClassName=org.h2.Driver -spring.datasource.username=sa -spring.datasource.password=password -spring.jpa.database-platform=org.hibernate.dialect.H2Dialect + diff --git a/src/test/resources/application.properties b/src/test/resources/application.properties index e69de29b..bc2fdde8 100644 --- a/src/test/resources/application.properties +++ b/src/test/resources/application.properties @@ -0,0 +1,5 @@ +spring.datasource.url=jdbc:h2:mem:testdb +spring.datasource.driverClassName=org.h2.Driver +spring.datasource.username=sa +spring.datasource.password=password +spring.jpa.database-platform=org.hibernate.dialect.H2Dialect