From 8af02b0b70f498499d2840c50947ddc64f92365a Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Thu, 28 Mar 2024 20:06:33 +0000 Subject: [PATCH] Add CI workflow for testing builds. --- .github/workflows/ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a8f01eb --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,25 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + +jobs: + build-and-test: + runs-on: ubuntu-latest + strategy: + matrix: + java: [ 21 ] + steps: + - uses: actions/checkout@v4 + + - name: set up JDK ${{ matrix.java }} + uses: actions/setup-java@v4 + with: + java-version: ${{ matrix.java }} + distribution: zulu + cache: "gradle" + - name: Run Build + run: ./gradlew shadowJar