diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..193f533a --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +version: 2 +updates: + # Gradle dependencies + - package-ecosystem: "gradle" + directory: "/" + schedule: + interval: "daily" + commit-message: + prefix: "chore" + include: "scope" + open-pull-requests-limit: 10 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..543ee36d --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,97 @@ +name: Build and test + +on: + push: + pull_request: + types: + - opened +jobs: + build-plugins: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Cache Gradle dependencies + uses: actions/cache@v4 + with: + path: ~/.gradle + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} + restore-keys: | + ${{ runner.os }}-gradle- + + - name: Setup Java + uses: actions/setup-java@v2 + with: + distribution: 'adopt' + java-version: '21' + + - name: Modify gradlew permissions + run: chmod +x ./gradlew + + - name: Build FancyHolograms + run: ./gradlew :plugins:fancyholograms:shadowJar + + build-libraries: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Cache Gradle dependencies + uses: actions/cache@v4 + with: + path: ~/.gradle + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} + restore-keys: | + ${{ runner.os }}-gradle- + + - name: Setup Java + uses: actions/setup-java@v2 + with: + distribution: 'adopt' + java-version: '21' + + - name: Modify gradlew permissions + run: chmod +x ./gradlew + + - name: Build common + run: ./gradlew :libraries:common:jar + + - name: Build jdb + run: ./gradlew :libraries:jdb:jar + + - name: Build plugin-tests + run: ./gradlew :libraries:plugin-tests:jar + + - name: Build packets + run: ./gradlew :libraries:packets:shadowJar + + tests: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Cache Gradle dependencies + uses: actions/cache@v4 + with: + path: ~/.gradle + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} + restore-keys: | + ${{ runner.os }}-gradle- + + - name: Setup Java + uses: actions/setup-java@v2 + with: + distribution: 'adopt' + java-version: '21' + + - name: Modify gradlew permissions + run: chmod +x ./gradlew + + - name: Build common + run: ./gradlew test \ No newline at end of file diff --git a/plugins/fancyholograms/src/main/resources/version.yml b/plugins/fancyholograms/src/main/resources/version.yml index 2de69789..5a012bd4 100644 --- a/plugins/fancyholograms/src/main/resources/version.yml +++ b/plugins/fancyholograms/src/main/resources/version.yml @@ -1,3 +1,2 @@ version: $version -build: $build hash: $hash \ No newline at end of file