Minestom/.github/workflows/pr.yml
Matt Worzala 381d89497a
hollow-cube/gradle-rework (#8)
* in order to make an omelet, you have to break a few eggs. aka absolutely decimate the gradle project

* far more sane gradle, no publishing yet tho

* attempt maven deploy

* fix publish url and use snapshot repo

* fix secret names

* release, and properly set version

* attempt to set group correctly

* more gradle fixups
2023-05-06 23:18:22 +03:00

33 lines
875 B
YAML

name: Build and test Minestom
on:
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: 17
- 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