Skip to content

Test Bnd

Test Bnd #170

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: Test Bnd
on:
schedule:
# Every Day at 3am
- cron: '0 3 * * *'
push:
branches-ignore:
- 'dependabot/**'
paths:
- '.github/**/*bnd-test*'
pull_request:
paths:
- '.github/**/*bnd-test*'
env:
LC_ALL: en_US.UTF-8
GRADLE_OPTS: >-
-Dorg.gradle.parallel=true
-Dmaven.repo.local=cnf/generated/m2
java_version: 17
ORG_GRADLE_PROJECT_bnd_version: 7.0.0-SNAPSHOT
defaults:
run:
shell: bash
permissions:
contents: read
jobs:
build:
name: Build and TCK core
runs-on: ubuntu-latest
if: ${{ github.repository == 'osgi/osgi' }}
steps:
- name: Git Checkout
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Set up Java
uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # v4.4.0
with:
distribution: 'temurin'
java-version: ${{ env.java_version }}
- name: Build
id: build
uses: gradle/gradle-build-action@982da8e78c05368c70dac0351bb82647a9e9a5d2 # v2.11.1
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
arguments: --continue :buildscriptDependencies :build :osgi.specs:specifications :osgi.tck:tck.core
- name: Upload TCK Test Reports on failure
if: ${{ failure() }}
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: TCK-core-reports
path: |
osgi.tck/generated/osgi.tck.core/reports/