From 52d435a65d5e7db433c1ddc222b4b4646ac0739a Mon Sep 17 00:00:00 2001 From: Geert Bevin Date: Sat, 31 Dec 2022 02:13:51 -0500 Subject: [PATCH] Setting up GitHub workflow --- .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..ac6cd64 --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,28 @@ +name: gradle-ci + +on: [push, pull_request, workflow_dispatch] + +jobs: + build-gradle-project: + runs-on: ubuntu-latest + + strategy: + matrix: + java-version: [ 11, 17, 19 ] + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Set up JDK ${{ matrix.java-version }} + uses: actions/setup-java@v1 + with: + java-version: ${{ matrix.java-version }} + - name: Checkout project sources + uses: actions/checkout@v2 + - name: Setup Gradle + uses: gradle/gradle-build-action@v2 + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Run build with Gradle Wrapper + run: ./gradlew build check --stacktrace \ No newline at end of file