From 27a8a86efac94097f051a2855ccdfa6c5fe1ead6 Mon Sep 17 00:00:00 2001 From: Johny Muffin Date: Tue, 6 Aug 2024 13:08:09 +1000 Subject: [PATCH] GitHub CI automatic build testing --- .github/build-and-test.yaml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/build-and-test.yaml diff --git a/.github/build-and-test.yaml b/.github/build-and-test.yaml new file mode 100644 index 0000000..86ce896 --- /dev/null +++ b/.github/build-and-test.yaml @@ -0,0 +1,36 @@ +--- +name: build-and-test +on: + pull_request: + types: + - opened + - synchronize + - reopened + push: + branches: + - master + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up JDK 21 + uses: actions/setup-java@v2 + with: + distribution: 'temurin' + java-version: '21' + + - name: Set up Maven + uses: stCarolas/setup-maven@v4.5 + with: + maven-version: 3.9.1 + + - name: build application + shell: bash + run: | + mvn clean install \ No newline at end of file