Skip to content

[assertj] initial framework.dto #1475

[assertj] initial framework.dto

[assertj] initial framework.dto #1475

Workflow file for this run

#*******************************************************************************
# Copyright (c) Contributors to the Eclipse Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
#*******************************************************************************
name: CI Build
on:
push:
branches-ignore:
- 'dependabot/**'
paths-ignore:
- '.github/**/*codeql*'
- '.github/**/*example*'
- '.github/*.yml'
- 'examples/**'
pull_request:
paths-ignore:
- '.github/**/*codeql*'
- '.github/**/*example*'
- '.github/*.yml'
- 'examples/**'
env:
LC_ALL: en_US.UTF-8
MAVEN_OPTS: >-
-Dhttp.keepAlive=false
-Dmaven.wagon.http.pool=false
-Dmaven.wagon.http.retryHandler.count=3
defaults:
run:
shell: bash
jobs:
build:
strategy:
matrix:
java: [ '11', '16' ]
os: [ 'ubuntu-latest' ]
include:
- os: 'windows-latest'
java: '8'
- os: 'ubuntu-latest'
java: '8'
codecov: true
canonical: ${{ (github.repository == 'osgi/osgi-test') && ((github.ref == 'refs/heads/main') || (github.ref == 'refs/heads/release')) && (github.event_name != 'pull_request') }}
mavenopts: '-Pjacoco'
- os: 'ubuntu-latest'
java: '8'
experimental: true
mavenopts: '-Pbnd-next'
name: JDK${{ matrix.java }} ${{ matrix.os }} ${{ matrix.mavenopts }}
runs-on: ${{ matrix.os }}
steps:
- name: Git Checkout
uses: actions/checkout@v2
- name: Set up Java ${{ matrix.java }}
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
server-id: ossrh
server-username: OSSRH_USERNAME
server-password: OSSRH_PASSWORD
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: GPG_PASSPHRASE
- name: Build
id: build
continue-on-error: ${{ matrix.experimental }}
run: |
./.github/scripts/build.sh ${{ matrix.mavenopts }}
- name: Publish
if: ${{ matrix.canonical && (steps.build.outcome == 'success') }}
run: |
./.github/scripts/publish.sh -Possrh
env:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
- name: Upload Codecov
if: ${{ matrix.codecov }}
uses: codecov/codecov-action@v2
with:
name: osgi-test
files: ./org.osgi.test.assertj.framework/target/site/jacoco-it/jacoco.xml,./org.osgi.test.assertj.promise/target/site/jacoco-it/jacoco.xml,./org.osgi.test.common/target/site/jacoco-it/jacoco.xml,./org.osgi.test.junit4/target/site/jacoco-it/jacoco.xml,./org.osgi.test.junit5/target/site/jacoco-it/jacoco.xml,./org.osgi.test.junit5.cm/target/site/jacoco-it/jacoco.xml