diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..72b6e84 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,23 @@ +# Dependabot configuration file for GitHub + +version: 2 +updates: + # CI workflow action updates + - package-ecosystem: "github-actions" + directory: "/" + schedule: + 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: 'io.papermc.paper:paper-api' + - dependency-name: 'io.papermc.paper:paper-mojangapi' \ No newline at end of file diff --git a/.github/funding.yml b/.github/funding.yml new file mode 100644 index 0000000..362350e --- /dev/null +++ b/.github/funding.yml @@ -0,0 +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 new file mode 100644 index 0000000..0bd8d2f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,37 @@ +# Builds, tests and publishes to maven when a commit is pushed +name: CI Tests & Publish + +on: + push: + branches: [ 'master' ] + paths-ignore: + - 'workflows/**' + - 'README.md' + +permissions: + contents: read + checks: write + +jobs: + build: + runs-on: ubuntu-latest + steps: + - 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 🏗️' + uses: gradle/gradle-build-action@v3 + 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@v4 + if: success() || failure() # always run even if the previous step fails + 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 new file mode 100644 index 0000000..4cbc6e7 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,29 @@ +# Builds, tests and publishes to maven when a release is published +name: Release Tests & Publish + +on: + release: + types: [ published ] + +permissions: + contents: read + checks: write + +jobs: + build: + runs-on: ubuntu-latest + steps: + - 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 🏗️' + uses: gradle/gradle-build-action@v3 + with: + arguments: build test publish + env: + RELEASES_MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} + RELEASES_MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} \ No newline at end of file diff --git a/README.md b/README.md index d0b190b..68d2be2 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,62 @@ -# Uniform -A cross-platform wrapper for making Brigadier commands, based on BrigadierWrapper by Tofaa2, itself inspired by emortalmcs command system. \ No newline at end of file + +
+