Merge branch 'Minestom:master' into master #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and test Minestom | ||
on: | ||
pull_request: | ||
branches: [ master ] | ||
# I hope these filters are good | ||
paths: | ||
- gradle/libs.versions.toml | ||
- src/** | ||
- **.kts | ||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: 'zulu' | ||
java-version: 21 | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Setup gradle cache | ||
uses: burrunan/gradle-cache-action@v1 | ||
with: | ||
save-generated-gradle-jars: false | ||
save-local-build-cache: false | ||
save-gradle-dependencies-cache: true | ||
save-maven-dependencies-cache: true | ||
# Ignore some of the paths when caching Maven Local repository | ||
maven-local-ignore-paths: | | ||
net/minestom/ | ||
- name: Build Minestom | ||
run: ./gradlew classes testClasses | ||
- name: Run Minestom tests | ||
run: ./gradlew test |