diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 357181dd..e6c00bbd 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,7 +1,22 @@ # Dependabot configuration file for GitHub + version: 2 updates: - - package-ecosystem: "gradle" # See documentation for possible values - directory: "/" # Location of package manifests + # CI workflow action updates + - package-ecosystem: "github-actions" + directory: "/" schedule: - interval: "daily" \ No newline at end of file + interval: "weekly" + commit-message: + prefix: "ci" + + # Gradle package updates + - package-ecosystem: "gradle" + directory: "/" + schedule: + interval: "weekly" + commit-message: + prefix: "deps" + ignore: + - dependency-name: 'org.spigotmc:spigot-api' + - dependency-name: 'org.papermc:paper-api' \ No newline at end of file diff --git a/.github/funding.yml b/.github/funding.yml index b863516e..362350ee 100644 --- a/.github/funding.yml +++ b/.github/funding.yml @@ -1,3 +1,4 @@ # Funding metadata for GitHub + github: WiIIiam278 custom: https://buymeacoff.ee/william278 \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d7936f8d..5d8a9b3a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,3 @@ -# Builds, tests the project with Gradle name: CI Tests on: @@ -17,21 +16,29 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Set up JDK 17 - uses: actions/setup-java@v3 + - name: 'Checkout for CI 🛎️' + uses: actions/checkout@v4 + - name: 'Set up JDK 17 📦' + uses: actions/setup-java@v4 with: java-version: '17' distribution: 'temurin' - - name: Build with Gradle + - name: 'Build with Gradle 🏗️' uses: gradle/gradle-build-action@v2 with: arguments: build test publish env: - SNAPSHOTS_MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} - SNAPSHOTS_MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} - - name: Publish Test Report - uses: mikepenz/action-junit-report@v3 - if: success() || failure() # always run even if the previous step fails + SNAPSHOTS_MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} + SNAPSHOTS_MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} + - name: 'Publish Test Report 📊' + uses: mikepenz/action-junit-report@v4 + if: success() || failure() # Continue on failure with: - report_paths: '**/build/test-results/test/TEST-*.xml' \ No newline at end of file + report_paths: '**/build/test-results/test/TEST-*.xml' + - name: 'Fetch Version Name 📝' + run: | + echo "::set-output name=VERSION_NAME::$(${{github.workspace}}/gradlew properties --no-daemon --console=plain -q | grep "^version:" | awk '{printf $2}')" + id: fetch-version + - name: Get Version + run: | + echo "version_name=${{steps.fetch-version.outputs.VERSION_NAME}}" >> $GITHUB_ENV \ No newline at end of file diff --git a/.github/workflows/pr_tests.yml b/.github/workflows/pr_tests.yml index 2f74d405..ecb8dd54 100644 --- a/.github/workflows/pr_tests.yml +++ b/.github/workflows/pr_tests.yml @@ -1,4 +1,3 @@ -# Carry out tests on pull requests name: PR Tests on: @@ -7,18 +6,25 @@ on: permissions: contents: read + checks: write jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Set up JDK 17 - uses: actions/setup-java@v3 + - name: 'Checkout for CI 🛎' + uses: actions/checkout@v4 + - name: 'Set up JDK 17 📦' + uses: actions/setup-java@v4 with: java-version: '17' distribution: 'temurin' - - name: Test Pull Request + - name: 'Build with Gradle 🏗️' uses: gradle/gradle-build-action@v2 with: - arguments: test \ No newline at end of file + arguments: test + - name: 'Publish Test Report 📊' + uses: mikepenz/action-junit-report@v4 + if: success() || failure() # Continue on failure + with: + report_paths: '**/build/test-results/test/TEST-*.xml' \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f1c02964..2ce1b30f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,9 +1,8 @@ -# Builds, tests and publishes to maven when a release is published name: Release Tests on: release: - types: [ published ] + types: [ 'published' ] permissions: contents: read @@ -13,21 +12,22 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Set up JDK 17 - uses: actions/setup-java@v3 + - name: 'Checkout for CI 🛎️' + uses: actions/checkout@v4 + - name: 'Set up JDK 17 📦' + uses: actions/setup-java@v4 with: java-version: '17' distribution: 'temurin' - - name: Build with Gradle + - name: 'Build with Gradle 🏗️' uses: gradle/gradle-build-action@v2 with: arguments: build test publish env: RELEASES_MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} RELEASES_MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} - - name: Publish Test Report - uses: mikepenz/action-junit-report@v3 - if: success() || failure() # always run even if the previous step fails + - name: 'Publish Test Report 📊' + uses: mikepenz/action-junit-report@v4 + if: success() || failure() # Continue on failure with: report_paths: '**/build/test-results/test/TEST-*.xml' \ No newline at end of file diff --git a/.github/workflows/update_docs.yml b/.github/workflows/update_docs.yml index fd188eb0..ca4b5fd4 100644 --- a/.github/workflows/update_docs.yml +++ b/.github/workflows/update_docs.yml @@ -1,4 +1,3 @@ -# Update the GitHub Wiki documentation when a push is made to docs/ name: Update Docs on: @@ -17,10 +16,10 @@ jobs: deploy-wiki: runs-on: ubuntu-latest steps: - - name: 'Checkout Code' - uses: actions/checkout@v3 - - name: 'Push Changes to Wiki' - uses: Andrew-Chen-Wang/github-wiki-action@v3 + - name: 'Checkout for CI 🛎️' + uses: actions/checkout@v4 + - name: 'Push Docs to Github Wiki 📄️' + uses: Andrew-Chen-Wang/github-wiki-action@v4 env: WIKI_DIR: 'docs/' GH_TOKEN: ${{ github.token }} diff --git a/gradle.properties b/gradle.properties index 4ee25df1..a1c07335 100644 --- a/gradle.properties +++ b/gradle.properties @@ -7,7 +7,7 @@ plugin_version=3.1.1 plugin_archive=husksync plugin_description=A modern, cross-server player data synchronization system -jedis_version=5.0.2 +jedis_version=5.1.0 mysql_driver_version=8.2.0 -mariadb_driver_version=3.2.0 +mariadb_driver_version=3.3.0 snappy_version=1.1.10.5