From e3b1cbd4110e75bc7476875263924852e8e50c16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=ABsFot?= Date: Mon, 16 Nov 2020 00:55:04 +0100 Subject: [PATCH] Run tests for master branch and pull requests --- .github/workflows/tests.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 000000000..6d233db27 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,25 @@ +name: Build and test Minestom + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 11 + uses: actions/setup-java@v1 + with: + java-version: 1.11 + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build Minestom + run: ./gradlew build + - name: Run tests + run: ./gradlew test