diff options
-rw-r--r-- | .github/workflows/maven.yml | 31 | ||||
-rw-r--r-- | ufund-api/src/main/resources/application.properties | 4 |
2 files changed, 33 insertions, 2 deletions
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 0000000..73842ec --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,31 @@ +# This workflow will build a Java project with Maven, 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-maven + +# 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. + +name: Java CI with Maven + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 22 + uses: actions/setup-java@v4 + with: + java-version: '22' + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B test --file ufund-api/pom.xml diff --git a/ufund-api/src/main/resources/application.properties b/ufund-api/src/main/resources/application.properties index fa5d084..a866f98 100644 --- a/ufund-api/src/main/resources/application.properties +++ b/ufund-api/src/main/resources/application.properties @@ -1,8 +1,8 @@ # rename to application.properties server.error.include-message=always -cupboard.file=ufund-api/data/cupboard.json -users.file=ufund-api/data/users.json +cupboard.file=data/cupboard.json +users.file=data/users.json spring.jackson.mapper.auto-detect-getters=false spring.jackson.mapper.auto-detect-setters=false |