From 5afb36629532b75ffd4bf7ecbfc3d5ba802b77d3 Mon Sep 17 00:00:00 2001 From: Bhautik Bavadiya <63995315+yesbhautik@users.noreply.github.com> Date: Tue, 23 Apr 2024 11:05:03 +0530 Subject: [PATCH] Create check.yml --- .github/workflows/check.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/check.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..f39d106 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,26 @@ +name: Java CI with Maven + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up JDK 17 + uses: actions/setup-java@v2 + with: + java-version: '17' + distribution: 'adopt' + + - name: Cache Maven packages + uses: actions/cache@v2 + with: + path: ~/.m2 + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2 + + - name: Build and run with Maven + run: mvn javafx:run