Skip to content

Commit

Permalink
Merge pull request #4 from harveymmaunders/java-actions
Browse files Browse the repository at this point in the history
Java dependabot and ci actions
  • Loading branch information
harveymmaunders authored Dec 13, 2024
2 parents 6330131 + 097ab53 commit 54410a4
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -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"
28 changes: 28 additions & 0 deletions .github/workflows/java-ci.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 54410a4

Please sign in to comment.