Skip to content

Merge pull request #822 from ioBroker/copilot/fix-false-positives-in-… #1364

Merge pull request #822 from ioBroker/copilot/fix-false-positives-in-…

Merge pull request #822 from ioBroker/copilot/fix-false-positives-in-… #1364

# This is a composition of lint and test scripts
# Make sure to update this file along with the others
name: Test and Release
# Run this job on all pushes and pull requests
# as well as tags with a semantic version
on:
push:
branches:
- '*'
tags:
# normal versions
- "v?[0-9]+.[0-9]+.[0-9]+"
# pre-releases
- "v?[0-9]+.[0-9]+.[0-9]+-**"
pull_request: {}
jobs:
# Runs adapter tests on all supported node versions and OSes
tests:
if: contains(github.event.head_commit.message, '[skip ci]') == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Use Node.js 22.x
uses: actions/setup-node@v6
with:
node-version: 22.x
- name: Install Dependencies
run: npm install
- name: Run test with branch
run: npm run start https://github.com/ioBroker/ioBroker.javascript master
- name: Run test without branch
run: npm run start https://github.com/ioBroker/ioBroker.javascript
# Deploys the final package to NPM
deploy:
needs: [tests]
# Permissions are required to create Github releases and npm trusted publishing
permissions:
contents: write
id-token: write
if: |
contains(github.event.head_commit.message, '[skip ci]') == false &&
github.event_name == 'push' &&
startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: ioBroker/testing-action-deploy@v1
with:
node-version: '24.x'
# npm-token: ${{ secrets.NPM_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
sentry-token: ${{ secrets.SENTRY_AUTH_TOKEN }}
sentry-project: 'iobroker-shelly'
sentry-version-prefix: 'iobroker.shelly'