diff --git a/.github/workflows/java.build-and-test.yaml b/.github/workflows/java.build-and-test.yaml index f88e9d0..a082a57 100644 --- a/.github/workflows/java.build-and-test.yaml +++ b/.github/workflows/java.build-and-test.yaml @@ -22,14 +22,17 @@ jobs: # Expose matched filters as job 'packages' output variable modules: ${{ steps.filter.outputs.changes }} steps: - - uses: dorny/paths-filter@v2 + - name: Checkout repository + uses: actions/checkout@v3 + - name: Check which modules are affected + uses: dorny/paths-filter@v2 id: filter with: filters: | - amphora-parent: '(amphora-parent|.github)/**' - amphora-common: '(amphora-common|.github)/**' - amphora-java-client: '(amphora-java-client|.github)/**' - amphora-service: '(amphora-service|.github)/**' + parent: '(amphora-parent|.github)/**' + common: '(amphora-common|.github)/**' + java-client: '(amphora-java-client|.github)/**' + service: '(amphora-service|.github)/**' test: needs: changes strategy: @@ -56,9 +59,9 @@ jobs: "password": "${{ secrets.GITHUB_TOKEN }}" }] - name: Build with Maven - run: ./mvnw install -pl ${{ matrix.module }} -Dskip.tests --batch-mode --update-snapshots --no-transfer-progress + run: ./mvnw install -pl ${GITHUB_REPOSITORY#*/}-${{ matrix.module }} -Dskip.tests --batch-mode --update-snapshots --no-transfer-progress - name: Run Tests - run: ./mvnw verify -pl ${{ matrix.module }} --activate-profiles coverage --batch-mode --no-transfer-progress + run: ./mvnw verify -pl ${GITHUB_REPOSITORY#*/}-${{ matrix.module }} --activate-profiles coverage --batch-mode --no-transfer-progress - name: Collect Jacoco reports run: echo ::set-output name=reports::$(find . -regex '.*/target/site/jacoco/jacoco.xml' | tr '\n' ',' | sed 's/.$//') id: jacoco @@ -68,6 +71,7 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} files: ${{ steps.jacoco.outputs.reports }} name: ${{ matrix.module }} + flags: ${{ matrix.module }} test-status: runs-on: ubuntu-22.04 needs: test diff --git a/.release-please-manifest.json b/.release-please-manifest.json index cbecc39..e8399fc 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,5 +1,5 @@ { - ".": "0.1.0", + "amphora-parent": "0.1.0", "amphora-common": "0.1.0", "amphora-java-client": "0.1.0", "amphora-service": "0.1.0", diff --git a/codecov.yaml b/codecov.yaml new file mode 100644 index 0000000..7c454c1 --- /dev/null +++ b/codecov.yaml @@ -0,0 +1,16 @@ +flag_management: + default_rules: + carryforward: true + individual_flags: + - name: parent + paths: + - amphora-parent/ + - name: common + paths: + - amphora-common/ + - name: java-client + paths: + - amphora-java-client/ + - name: service + paths: + - amphora-service/ diff --git a/release-please-config.json b/release-please-config.json index f72c682..a34063a 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -5,7 +5,7 @@ "pull-request-header": ":package: Staging a new release", "skip-snapshot": true, "packages": { - ".": { + "amphora-parent": { "package-name": "parent", "release-type": "maven" },