diff --git a/.github/dependencies/.js-controller-version b/.github/dependencies/.js-controller-version index 593cb7a..c21e5b4 100644 --- a/.github/dependencies/.js-controller-version +++ b/.github/dependencies/.js-controller-version @@ -1 +1 @@ -v3.3.22 +3.3.22 diff --git a/.github/workflows/check-js-controller-release.yml b/.github/workflows/check-js-controller-release.yml index b8c2c04..b7b3123 100644 --- a/.github/workflows/check-js-controller-release.yml +++ b/.github/workflows/check-js-controller-release.yml @@ -17,8 +17,11 @@ jobs: - name: Fetch js-controller release version run: | - curl -sL https://api.github.com/repos/ioBroker/ioBroker.js-controller/releases/latest | \ - jq -r ".tag_name" > .github/dependencies/.js-controller-version + curl -sL https://repo.iobroker.live/sources-dist.json | \ + jq -r '."js-controller".version' > .github/dependencies/.js-controller-version + # curl -sL https://api.github.com/repos/ioBroker/ioBroker.js-controller/releases/latest | \ + # jq -r ".tag_name" > .github/dependencies/.js-controller-version + echo "[LOG] Fetched js-controller version is $(cat .github/dependencies/.js-controller-version)" - name: Check for modified files id: git-check @@ -46,4 +49,4 @@ jobs: with: workflow: Build debian latest (iobroker) repo: buanet/ioBroker.docker - token: ${{ secrets.ACTIONS_PAT }} \ No newline at end of file + token: ${{ secrets.ACTIONS_PAT }} diff --git a/.github/workflows/testing-docker-image.yml b/.github/workflows/testing-docker-image.yml new file mode 100644 index 0000000..aedbc57 --- /dev/null +++ b/.github/workflows/testing-docker-image.yml @@ -0,0 +1,33 @@ +# Github action for testing the Docker image +name: Testing Docker image + +on: + workflow_dispatch: + +jobs: + test-docker-image: + runs-on: ubuntu-latest + steps: + - name: Testing with docker run + run: | + echo "[LOG] Starting ioBroker Container..." + docker run -d -p 8081:8081 --name iobroker -v iobrokerdata:/opt/iobroker buanet/iobroker:latest + echo "[LOG] Done." + echo ' ' + echo "[LOG] Waiting for Startup Script..." + sleep 30 + echo "[LOG] Done." + echo ' ' + echo "[LOG] Writing Logs..." + docker logs iobroker >& testrun.log + echo "[LOG] Done." + echo ' ' + echo "[LOG] Checking Web UI..." + curl --insecure http://127.0.0.1:8081 2> /dev/null | grep 'Admin' &> /dev/null || exit 1 + echo "[LOG] Done." + echo ' ' + echo "[LOG] Output testrun.log:" + cat testrun.log + echo ' ' + echo "[LOG] Test sucesssful." + echo ' '