From 77fbcb1e0b148d21bb9df8755f7a20b241f91585 Mon Sep 17 00:00:00 2001 From: Victor Melnik Date: Tue, 20 Feb 2024 22:59:58 +0200 Subject: [PATCH] Add CI --- .github/workflows/gradle.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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..191e9aa --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,26 @@ +name: build + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '17', '21' ] + name: Build + steps: + - uses: actions/checkout@v4 + - name: Set up JDK ${{ matrix.java }} + uses: actions/setup-java@v4 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + - name: Run tests + uses: gradle/actions/setup-gradle@v3 + with: + arguments: test