100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
Add macos tester
Michal Rutkafa1133e2c80b
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.ymlindex 31dd01267..edc6d9903 100644--- a/.github/workflows/tests.yml+++ b/.github/workflows/tests.yml@@ -1,6 +1,3 @@-# This workflow will build a Java project with Gradle-# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle-name: testson:@@ -13,17 +10,62 @@ on:workflow_dispatch:jobs:- tests:+ tests-linux:+ strategy:+ fail-fast: false+ max-parallel: 5+ matrix:+ java-version: [1.8]+ os-version: [ubuntu-20.04, ubuntu-18.04, ubuntu-16.04]++ runs-on: ${{ matrix.os-version }}++ steps:+ - uses: actions/checkout@v2+ - name: set up JDK+ uses: actions/setup-java@v1+ with:+ java-version: ${{ matrix.java-version }}+ - name: grant execute permission for gradlew+ run: chmod +x gradlew+ - name: start containers needed for testing+ run: docker-compose -f profile/dev-testing.yml up --no-build -d+ - name: Check running containers+ run: docker ps -a+ - name: tests with Gradle+ run: ./gradlew clean test+ # Typically it takes 10 minutes to complete tests, default timeout is 6h, to be agile we need to pivot quicker :-)+ timeout-minutes: 30+ - name: Share tests artifacts+ if: failure()+ uses: actions/upload-artifact@v2+ with:+ name: tests-run-artifacts+ path: |+ test/build/reports/tests/test++ tests-macos:strategy:fail-fast: falsemax-parallel: 5matrix:java-version: [1.8]- os-version: [ubuntu-20.04, ubuntu-18.04, ubuntu-16.04, windows-2019]+ os-version: [macos-latest]runs-on: ${{ matrix.os-version }}steps:+ - name: install docker+ run: |+ mkdir -p ~/.docker/machine/cache+ curl -Lo ~/.docker/machine/cache/boot2docker.iso https://github.com/boot2docker/boot2docker/releases/download/v19.03.12/boot2docker.iso+ brew install docker docker-machine docker-compose+ docker-machine create --driver virtualbox default+ docker-machine env default+ - name: Run container+ run: |+ eval "$(docker-machine env default)"+ docker run --rm openremote/openremote-cli -V -t- uses: actions/checkout@v2- name: set up JDKuses: actions/setup-java@v1@@ -46,3 +88,39 @@ jobs:name: tests-run-artifactspath: |test/build/reports/tests/test++ tests-windows:+ strategy:+ fail-fast: false+ max-parallel: 5+ matrix:+ java-version: [1.8]+ os-version: [windows-2019]++ runs-on: ${{ matrix.os-version }}++ steps:+ - uses: actions/checkout@v2+ - name: set up JDK+ uses: actions/setup-java@v1+ with:+ java-version: ${{ matrix.java-version }}+ - name: I give up+ run: echo I give up becuse I'm clueless how to run Linux containers here :-(+# - name: grant execute permission for gradlew+# run: chmod +x gradlew+# - name: start containers needed for testing+# run: docker-compose -f profile/dev-testing.yml up --no-build -d+# - name: Check running containers+# run: docker ps -a+# - name: tests with Gradle+# run: ./gradlew clean test+# # Typically it takes 10 minutes to complete tests, default timeout is 6h, to be agile we need to pivot quicker :-)+# timeout-minutes: 30+# - name: Share tests artifacts+# if: failure()+# uses: actions/upload-artifact@v2+# with:+# name: tests-run-artifacts+# path: |+# test/build/reports/tests/test