Skip to content

Commit

Permalink
Fix merge conflict
Browse files Browse the repository at this point in the history
Signed-off-by: David Greven <fixed-term.David.Greven@de.bosch.com>
  • Loading branch information
grevend-bosch committed Nov 4, 2021
2 parents e7ee071 + 64d0dd3 commit 79dac4f
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 6 deletions.
36 changes: 31 additions & 5 deletions .github/workflows/build-test-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,53 @@
#
# SPDX-License-Identifier: Apache-2.0
#
name: Build and test artifacts
name: Artifacts
on: push
jobs:
test:
prepare:
runs-on: ubuntu-20.04
outputs:
matrix: ${{ steps.jdk.outputs.matrix }}
steps:
- name: Split JDK identifier
id: jdk
run: echo "::set-output name=matrix::{\"jdk\":[{\"distribution\":\"temurin\",\"version\":8},{\"distribution\":\"temurin\",\"version\":17}]}"
build:
runs-on: ubuntu-20.04
needs: prepare
strategy:
matrix: ${{ fromJSON(needs.prepare.outputs.matrix) }}
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
- name: Set up JDK ${{ matrix.jdk.version }}
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'temurin'
java-version: ${{ matrix.jdk.version }}
distribution: ${{ matrix.jdk.distribution }}
cache: 'maven'
- name: Build with Maven
run: mvn install -Dskip.tests --batch-mode --update-snapshots --no-transfer-progress
test:
runs-on: ubuntu-20.04
needs: prepare
strategy:
matrix: ${{ fromJSON(needs.prepare.outputs.matrix) }}
steps:
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.jdk.version }}
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.jdk.version }}
distribution: ${{ matrix.jdk.distribution }}
cache: 'maven'
- name: Run Tests
run: mvn verify --activate-profiles coverage --batch-mode --no-transfer-progress
- name: Collect Jacoco reports
if: matrix.jdk.version == 8
run: echo ::set-output name=reports::$(find . -regex '.*/target/site/jacoco/jacoco.xml' | tr '\n' ',' | sed 's/.$//')
id: jacoco
- uses: codecov/codecov-action@v2
if: matrix.jdk.version == 8
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ${{ steps.jacoco.outputs.reports }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
name: Publish and release
on:
workflow_run:
workflows: [ "Build and test artifacts" ]
workflows: ["Artifacts"]
branches:
- master
types:
Expand Down
1 change: 1 addition & 0 deletions NOTICE.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ file in the Carbyne Stack

- Becker Sebastian <sebastian.becker@de.bosch.com>
- Duplys Paul <paul.duplys@de.bosch.com>
- Greven David <fixed-term.David.Greven@de.bosch.com>
- Trieflinger Sven <sven.trieflinger@de.bosch.com>

0 comments on commit 79dac4f

Please sign in to comment.