diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml new file mode 100644 index 0000000..86ce896 --- /dev/null +++ b/.github/workflows/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