update build.yml

This commit is contained in:
Oliver
2025-03-15 13:03:59 +01:00
parent 5774e21479
commit ea6c9b28b3
2 changed files with 29 additions and 3 deletions

View File

@@ -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
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