Skip to content

Commit

Permalink
Small experiment with github workflow.
Browse files Browse the repository at this point in the history
Signed-off-by: Łukasz Dywicki <luke@code-house.org>
  • Loading branch information
splatch committed Jul 4, 2023
1 parent af86e08 commit 862454d
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 12 deletions.
25 changes: 25 additions & 0 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# ConnectorIO Addons Security Policy

This repository consist addons which can be used in combination with openHAB project.
ConnectorIO sp. z o.o. do maintain compatibility of all addons with all below versions of openHAB.
The openHAB project have its own maintenance policy which is independent of this one.

| OH / Addon version | Repository branch | Supportability |
|--------------------|-------------------|--------------------|
| < 3.0 | :x: | :x: |
| 3.0.x | master | :white_check_mark: |
| 3.1.x | 3.1.x | :white_check_mark: |
| 3.2.x | 3.2.x | :white_check_mark: |
| 3.3.x | 3.3.x | :white_check_mark: |
| 3.4.x | 3.4.x | :white_check_mark: |

Versions below openHAB 3.0.x are not supported.

## Reporting a Vulnerability

Bugs, code flaws which can be lead to a vulnerability can be reported to security@connectorio.com.
While security is an important aspect of software development, we as small organization might need up to two weeks to answer your report.
We might need up to two months to address issue, especially if we will be required to provide a patch to one of this project dependencies.

All code included in this repository is provided for community and for free and was developed in great extent independently of commercial context.
Thus, we are not able to compensation of your efforts nor provide any financial gratification for your work.
58 changes: 58 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Maven build

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
strategy:
matrix:
java: [ 11 ]
os: [ ubuntu-latest ]
fail-fast: false
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Cache SonarCloud packages
uses: actions/cache@v3
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Build with Maven
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: |
mvn -B -fae clean verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
-Dsonar.projectKey=ConnectorIO_connectorio-addons
-Dsonar.organization=connectorio
-Dsonar.host.url=https://sonarcloud.io
- name: Upload Test Report
uses: actions/upload-artifact@v3
if: success() || failure()
with:
name: "java-test-report-${{ matrix.os }}-java-${{ matrix.java }}"
path: |
**/surefire-reports/TEST-*.xml
**/failsafe-reports/TEST-*.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ public class WMBusAdapterConnectionBuilder {

private final Builder builder;

public WMBusAdapterConnectionBuilder(WMBusListener listener, WMBusMode mode) {
builder = new Builder(null, listener) {
@Override
WMBusConnection build(TransportLayer transportLayer) throws IOException {
WMBusConnectionCUL connectionCUL = new WMBusConnectionCUL(mode, listener, transportLayer);
connectionCUL.open();
return connectionCUL;
}
};
}
// public WMBusAdapterConnectionBuilder(WMBusListener listener, WMBusMode mode) {
// builder = new Builder(null, listener) {
// @Override
// WMBusConnection build(TransportLayer transportLayer) throws IOException {
// WMBusConnectionCUL connectionCUL = new WMBusConnectionCUL(mode, listener, transportLayer);
// connectionCUL.open();
// return connectionCUL;
// }
// };
// }

public WMBusAdapterConnectionBuilder(WMBusManufacturer wmBusManufacturer, WMBusListener listener) {
builder = new Builder(wmBusManufacturer, listener);
Expand Down
4 changes: 2 additions & 2 deletions parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
<compiler.source>11</compiler.source>
<compiler.target>11</compiler.target>

<plc4x-extras.version>0.8.1-SNAPSHOT</plc4x-extras.version>
<bacnet4j-wrapper.version>1.3.0-SNAPSHOT</bacnet4j-wrapper.version>
<plc4x-extras.version>0.8.1</plc4x-extras.version>
<bacnet4j-wrapper.version>1.3.0-alpha3</bacnet4j-wrapper.version>

<openhab.version>3.0.4-connectorio-1</openhab.version>
<openhab-distro.version>3.0.4</openhab-distro.version>
Expand Down

0 comments on commit 862454d

Please sign in to comment.