Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable JDK 17 matrix builds #6

Merged
merged 6 commits into from
Oct 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>