From 12a648e8379abb47eaa4f1c23e0c3c465adfb04e Mon Sep 17 00:00:00 2001 From: Bertrand Lorentz Date: Fri, 8 Dec 2023 10:21:03 +0100 Subject: [PATCH] workflows: Add workflow to run unit tests on every push and PR --- .github/workflows/build.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..5b276d9 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,21 @@ +name: Build and run unit tests +on: + push: + pull_request: + + # Allows to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + publish: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + java-version: '11' + distribution: 'adopt' + - name: Build and run unit tests + run: mvn --batch-mode clean package