Integration tests for scenarios which involves BTP related operations such as updating repository id, subscribing and unsubscribing application #1702
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: UnitTestsWithCodeCoverage | |
| on: | |
| push: | |
| branches: [ "develop" ] | |
| pull_request: | |
| branches: [ "develop" ] | |
| types: [opened, synchronize, reopened, auto_merge_enabled] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read # allows workflow to checkout private repository | |
| pull-requests: read | |
| jobs: | |
| unitTests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| java-version: [17] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Set up JDK ${{ matrix.java-version }} | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: ${{ matrix.java-version }} | |
| - name: Cache Maven dependencies | |
| uses: actions/cache@v5 | |
| with: | |
| path: ~/.m2 | |
| key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-maven- | |
| - name: Install dependencies and run tests with coverage | |
| run: | | |
| mvn clean install -P unit-tests -DskipIntegrationTests | |
| - name: Upload code coverage report | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: code-coverage-report | |
| path: target/site/jacoco/jacoco.xml |