Skip to content
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
47 changes: 14 additions & 33 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,58 +29,37 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
- uses: ioBroker/testing-action-check@v1
with:
node-version: 20.x

- name: Install Dependencies
run: npm install

# - name: Perform a type check
# run: npm run check:ts
# env:
# CI: true
# - name: Lint TypeScript code
# run: npm run lint
# - name: Test package files
# run: npm run test:package
node-version: '22.x'
lint: true

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 20.x
node-version: 22.x
- run: npm i
- run: npm run build

# Runs adapter tests on all supported node versions and OSes
# Runs adapter tests on all supported node versions and OSes
adapter-tests:
if: contains(github.event.head_commit.message, '[skip ci]') == false

needs: [check-and-lint, build]
needs: [check-and-lint]

runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x, 24.x]
os: [ubuntu-latest, windows-latest, macos-latest]

steps:
- uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v6
- uses: ioBroker/testing-action-adapter@v1
with:
node-version: ${{ matrix.node-version }}

- name: Install Dependencies
run: npm install

- name: Run local tests
run: npm test
build: true

# Merges and deploys the final package to NPM
auto-merge:
Expand All @@ -90,6 +69,10 @@ jobs:
always() &&
github.event_name == 'pull_request'
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write

steps:
- id: automerge
name: automerge
Expand Down Expand Up @@ -140,17 +123,15 @@ jobs:

- name: Install Dependencies
if: steps.automerge.outputs.mergeResult == 'merged'
run: npm install
run: npm ci

- name: Build
if: steps.automerge.outputs.mergeResult == 'merged'
run: npm run build

# The prepublish script also creates a build
- name: Publish package to npm
if: steps.automerge.outputs.mergeResult == 'merged'
run: |
npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
npm whoami
npm publish

Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ _admin
iob_npm.dode
/nbproject
/src/blockly
/src/package-lock.json
package-lock.json
/src/.eslintcache


Expand Down

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion admin/assets/hostInit-OBG53iVO.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

90 changes: 45 additions & 45 deletions admin/assets/index-CdhAKdh7.js → admin/assets/index-BJAag8wp.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

942 changes: 0 additions & 942 deletions admin/assets/index-BwM95JpZ.js

This file was deleted.

5 changes: 0 additions & 5 deletions admin/assets/index-CFhFEZTW.js

This file was deleted.

5 changes: 5 additions & 0 deletions admin/assets/index-Cjl4b70e.js

Large diffs are not rendered by default.

942 changes: 942 additions & 0 deletions admin/assets/index-DNtk0j1I.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading
Loading