From 4fbc11779215a40434b817bb0fc8dbfbfa0ec3eb Mon Sep 17 00:00:00 2001 From: William Date: Mon, 29 Aug 2022 15:28:56 +0100 Subject: [PATCH] Add GitHub actions CI --- .github/workflows/java_ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/java_ci.yml diff --git a/.github/workflows/java_ci.yml b/.github/workflows/java_ci.yml new file mode 100644 index 00000000..92e7211d --- /dev/null +++ b/.github/workflows/java_ci.yml @@ -0,0 +1,26 @@ +# Builds and tests the project with Gradle +name: Java CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +permissions: + contents: read + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 16 + uses: actions/setup-java@v3 + with: + java-version: '16' + distribution: 'temurin' + - name: Build with Gradle + uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 + with: + arguments: test \ No newline at end of file