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

[MAINTENANCE] Compile tutorial modules #538

Merged
merged 1 commit into from
Mar 3, 2025
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
51 changes: 51 additions & 0 deletions .github/workflows/tutorials.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# 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.

name: Tutorials - CI Build

on:
pull_request:
paths:
- parent/**
- tutorials/**
- .github/workflows/tutorials.yml
push:
branches:
- 'trunk'

env:
LC_ALL: en_US.UTF-8

jobs:
JDKxx_Matrix:
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
java: [ 8 ]
os: [ ubuntu-latest ]
name: JDK${{ matrix.java }} ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- name: Git Checkout
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Build parent
shell: bash
run: mvn -U -e -B -ntp clean install -f parent
- name: Build tutorials
shell: bash
run: mvn -U -e -B -ntp clean install -f tutorials
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ See [Apache Aries Website](http://aries.apache.org/).
- [![Web - CI Build](https://github.com/apache/aries/actions/workflows/web.yml/badge.svg)](https://github.com/apache/aries/actions/workflows/web.yml)
- [![Util - CI Build](https://github.com/apache/aries/actions/workflows/util.yml/badge.svg)](https://github.com/apache/aries/actions/workflows/util.yml)
- [![Testsupport - CI Build](https://github.com/apache/aries/actions/workflows/testsupport.yml/badge.svg)](https://github.com/apache/aries/actions/workflows/testsupport.yml)
- [![Tutorials - CI Build](https://github.com/apache/aries/actions/workflows/tutorials.yml/badge.svg)](https://github.com/apache/aries/actions/workflows/tutorials.yml)

## Source Code

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@
<module>subsystem</module>
<module>testsupport</module>
<module>transaction</module>
<module>tutorials</module>
<module>util</module>
<module>versioning</module>
<module>web</module>

<!-- excluded as not having CI build-->
<!--
<module>sandbox</module>
<module>tutorials</module>
-->
</modules>

Expand Down
9 changes: 7 additions & 2 deletions tutorials/blueprint/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<parent>
<groupId>org.apache.aries.tutorials</groupId>
<artifactId>tutorials</artifactId>
<version>0.4-SNAPSHOT</version>
<version>0.1-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand All @@ -31,6 +31,11 @@


<modules>
<module>tutorial-modules</module>
<module>tutorial-modules/greeter-api</module>
<module>tutorial-modules/greeter-client-osgi</module>
<module>tutorial-modules/greeter-server-osgi</module>
<module>tutorial-modules/greeter-client-blueprint</module>
<module>tutorial-modules/greeter-server-blueprint</module>
<module>tutorial-assembly</module>
</modules>
</project>
Loading