From d7466da640d0f60914314b404787012114991b70 Mon Sep 17 00:00:00 2001 From: Andrey Terentev <54776640+ScarletRedMan@users.noreply.github.com> Date: Sat, 13 Jan 2024 01:57:31 +0700 Subject: [PATCH] Create gradle.yml Added CI for automatic build and running tests --- .github/workflows/gradle.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/gradle.yml diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml new file mode 100644 index 0000000..539b0f2 --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,28 @@ +name: Build Project + +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 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'corretto' + + - name: Build with Gradle + uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0 + with: + arguments: build