diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..73ca75ee --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,34 @@ +# SPDX-FileCopyrightText: 2025 SPDX contributors +# SPDX-FileType: SOURCE +# SPDX-License-Identifier: Apache-2.0 + +name: Test with Maven + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + test: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Set up JDK + uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: 8 + - name: Cache Maven packages + uses: actions/cache@v4 + with: + path: ~/.m2 + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2 + - name: Run tests + run: mvn test