diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 8e77182..d8e991e 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,10 +1,14 @@ version: 2 updates: - - package-ecosystem: "gradle" + - package-ecosystem: "github-actions" + cooldown: + default-days: 7 directory: "/" schedule: interval: "monthly" - - package-ecosystem: "github-actions" + - package-ecosystem: "gradle" + cooldown: + default-days: 7 directory: "/" schedule: interval: "monthly" \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8220902..a626725 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,23 +1,33 @@ -name: Java CI with Gradle - -on: [push, pull_request] +name: Build +on: [pull_request, push] +permissions: + contents: read jobs: build: if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }} - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 + timeout-minutes: 30 steps: - - name: Checkout Repository - uses: actions/checkout@v6 - with: - persist-credentials: false - - name: Set up Gradle - uses: gradle/actions/setup-gradle@v5 - - name: Set up JDK 17 - uses: actions/setup-java@v5 - with: - distribution: 'temurin' - java-version: 17 - check-latest: true - - name: Build with Gradle - run: ./gradlew build + - name: Checkout Repository + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # 6.0.2 + with: + persist-credentials: false + - name: Set up Gradle + uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # 5.0.0 + with: + cache-disabled: true + - name: Set up JDK 17 + uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # 5.2.0 + with: + distribution: 'temurin' + java-version: 17 + check-latest: true + - name: Build with Gradle + run: ./gradlew build + - name: Upload Artifacts to GitHub + uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # 6.0.0 + with: + name: Artifacts + path: build/libs/ + if-no-files-found: error \ No newline at end of file