From f9feb6c7c0a9cbf8a5221a1de3687e642896ba76 Mon Sep 17 00:00:00 2001 From: Skylot <118523+skylot@users.noreply.github.com> Date: Thu, 21 Nov 2024 20:20:18 +0000 Subject: [PATCH] add github test workflow --- .github/dependabot.yml | 7 +++++++ .github/workflows/build-test.yml | 25 +++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/build-test.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..e261d24 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +version: 2 +updates: + # Set update schedule for GitHub Actions + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml new file mode 100644 index 0000000..881a22a --- /dev/null +++ b/.github/workflows/build-test.yml @@ -0,0 +1,25 @@ +name: Build Test + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up JDK + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 11 + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + + - name: Build + run: ./gradlew build