From ea6c9b28b3486beacf51ed9ed6ac549400be10c4 Mon Sep 17 00:00:00 2001 From: Oliver Date: Sat, 15 Mar 2025 13:03:59 +0100 Subject: [PATCH] update build.yml --- .github/workflows/build.yml | 31 +++++++++++++++++-- .../src/main/resources/version.yml | 1 - 2 files changed, 29 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8bdb10cd..543ee36d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Build Plugins +name: Build and test on: push: @@ -67,4 +67,31 @@ jobs: run: ./gradlew :libraries:plugin-tests:jar - name: Build packets - run: ./gradlew :libraries:packets:shadowJar \ No newline at end of file + 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