diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..9436b95 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +version: 2 +updates: + - package-ecosystem: "gradle" + directory: "/client-samples/java/rest" + schedule: + interval: "weekly" + day: "monday" + time: "08:00" + commit-message: + prefix: "gradle" \ No newline at end of file diff --git a/.github/workflows/java-ci.yml b/.github/workflows/java-ci.yml new file mode 100644 index 0000000..714f809 --- /dev/null +++ b/.github/workflows/java-ci.yml @@ -0,0 +1,28 @@ +defaults: + run: + working-directory: ./client-samples/java/rest +name: Java CI +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + - name: Gradle Build + run: ./gradlew build + - name: Gradle Test + run: ./gradlew test