From 3ed1e30e08f4a6891ccb6e5a7398ee2702585415 Mon Sep 17 00:00:00 2001 From: dragos-mateescu-visma <83346176+dragos-mateescu-visma@users.noreply.github.com> Date: Wed, 9 Jun 2021 14:57:14 +0300 Subject: [PATCH] Add build and test action on push or pull request --- .github/workflows/build_and_test_action.yml | 25 +++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/build_and_test_action.yml diff --git a/.github/workflows/build_and_test_action.yml b/.github/workflows/build_and_test_action.yml new file mode 100644 index 000000000..61064f4c2 --- /dev/null +++ b/.github/workflows/build_and_test_action.yml @@ -0,0 +1,25 @@ +# This workflow will build a Java project with Maven +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven + +name: Java CI with Maven + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 11 + uses: actions/setup-java@v2 + with: + java-version: '11' + distribution: 'adopt' + - name: Build with Maven + run: mvn -B package --file pom.xml