iobroker.sonoff 2.5.1 → 2.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,22 +0,0 @@
1
- # Automatically merge Dependabot PRs when version comparison is within the range
2
- # that is configured in .github/auto-merge.yml
3
-
4
- name: Auto-Merge Dependabot PRs
5
-
6
- on:
7
- pull_request_target:
8
-
9
- jobs:
10
- auto-merge:
11
- runs-on: ubuntu-latest
12
- steps:
13
- - name: Checkout code
14
- uses: actions/checkout@v3
15
-
16
- - name: Check if PR should be auto-merged
17
- uses: ahmadnassri/action-dependabot-auto-merge@v2
18
- with:
19
- # This must be a personal access token with push access
20
- github-token: ${{ secrets.AUTO_MERGE_TOKEN }}
21
- # By default, squash and merge, so Github chooses nice commit messages
22
- command: squash and merge
@@ -1,156 +0,0 @@
1
- # This is a composition of lint and test scripts
2
- # Make sure to update this file along with the others
3
-
4
- name: Test and Release
5
-
6
- # Run this job on all pushes and pull requests
7
- # as well as tags with a semantic version
8
- on:
9
- push:
10
- branches:
11
- - '*'
12
- tags:
13
- # normal versions
14
- - "v?[0-9]+.[0-9]+.[0-9]+"
15
- # pre-releases
16
- - "v?[0-9]+.[0-9]+.[0-9]+-**"
17
- pull_request: {}
18
-
19
- jobs:
20
- # Performs quick checks before the expensive test runs
21
- check-and-lint:
22
- if: contains(github.event.head_commit.message, '[skip ci]') == false
23
-
24
- runs-on: ubuntu-latest
25
-
26
- strategy:
27
- matrix:
28
- node-version: [12.x]
29
-
30
- steps:
31
- - uses: actions/checkout@v3
32
- - name: Use Node.js ${{ matrix.node-version }}
33
- uses: actions/setup-node@v3
34
- with:
35
- node-version: ${{ matrix.node-version }}
36
-
37
-
38
- - name: Install Dependencies
39
- run: npm i
40
-
41
- # - name: Perform a type check
42
- # run: npm run check:ts
43
- # env:
44
- # CI: true
45
- # - name: Lint TypeScript code
46
- # run: npm run lint
47
- # - name: Test package files
48
- # run: npm run test:package
49
-
50
- # Runs adapter tests on all supported node versions and OSes
51
- adapter-tests:
52
- if: contains(github.event.head_commit.message, '[skip ci]') == false
53
-
54
- needs: [check-and-lint]
55
-
56
- runs-on: ${{ matrix.os }}
57
- strategy:
58
- matrix:
59
- node-version: [12.x, 14.x, 16.x]
60
- os: [ubuntu-latest, windows-latest, macos-latest]
61
-
62
- steps:
63
- - uses: actions/checkout@v3
64
- - name: Use Node.js ${{ matrix.node-version }}
65
- uses: actions/setup-node@v3
66
- with:
67
- node-version: ${{ matrix.node-version }}
68
-
69
- - name: Install Dependencies
70
- run: npm i
71
-
72
- - name: Run local tests
73
- run: npm test
74
- # - name: Run unit tests
75
- # run: npm run test:unit
76
- # - name: Run integration tests # (linux/osx)
77
- # if: startsWith(runner.OS, 'windows') == false
78
- # run: DEBUG=testing:* npm run test:integration
79
- # - name: Run integration tests # (windows)
80
- # if: startsWith(runner.OS, 'windows')
81
- # run: set DEBUG=testing:* & npm run test:integration
82
-
83
- # Deploys the final package to NPM
84
- deploy:
85
- needs: [adapter-tests]
86
-
87
- # Trigger this step only when a commit on master is tagged with a version number
88
- if: |
89
- contains(github.event.head_commit.message, '[skip ci]') == false &&
90
- github.event_name == 'push' &&
91
- startsWith(github.ref, 'refs/tags/')
92
- runs-on: ubuntu-latest
93
- strategy:
94
- matrix:
95
- node-version: [12.x]
96
-
97
- steps:
98
- - name: Checkout code
99
- uses: actions/checkout@v3
100
-
101
- - name: Use Node.js ${{ matrix.node-version }}
102
- uses: actions/setup-node@v3
103
- with:
104
- node-version: ${{ matrix.node-version }}
105
-
106
- - name: Extract the version and commit body from the tag
107
- id: extract_release
108
- # The body may be multiline, therefore we need to escape some characters
109
- run: |
110
- VERSION="${{ github.ref }}"
111
- VERSION=${VERSION##*/}
112
- VERSION=${VERSION##*v}
113
- echo "::set-output name=VERSION::$VERSION"
114
- BODY=$(git show -s --format=%b)
115
- BODY="${BODY//'%'/'%25'}"
116
- BODY="${BODY//$'\n'/'%0A'}"
117
- BODY="${BODY//$'\r'/'%0D'}"
118
- echo "::set-output name=BODY::$BODY"
119
-
120
- - name: Install Dependencies
121
- run: npm i
122
-
123
- # - name: Create a clean build
124
- # run: npm run build
125
- - name: Publish package to npm
126
- run: |
127
- npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
128
- npm whoami
129
- npm publish
130
-
131
- - name: Create Github Release
132
- uses: actions/create-release@v1
133
- env:
134
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
135
- with:
136
- tag_name: ${{ github.ref }}
137
- release_name: Release v${{ steps.extract_release.outputs.VERSION }}
138
- draft: false
139
- # Prerelease versions create pre-releases on Github
140
- prerelease: ${{ contains(steps.extract_release.outputs.VERSION, '-') }}
141
- body: ${{ steps.extract_release.outputs.BODY }}
142
-
143
- - name: Notify Sentry.io about the release
144
- run: |
145
- npm i -g @sentry/cli
146
- export SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}
147
- export SENTRY_URL=https://sentry.iobroker.net
148
- export SENTRY_ORG=iobroker
149
- export SENTRY_PROJECT=iobroker-sonoff
150
- export SENTRY_VERSION=iobroker.sonoff@${{ steps.extract_release.outputs.VERSION }}
151
- sentry-cli releases new $SENTRY_VERSION
152
- sentry-cli releases set-commits $SENTRY_VERSION --auto
153
- sentry-cli releases finalize $SENTRY_VERSION
154
-
155
- # Add the following line BEFORE finalize if sourcemap uploads are needed
156
- # sentry-cli releases files $SENTRY_VERSION upload-sourcemaps build/
package/.mocharc.json DELETED
@@ -1,5 +0,0 @@
1
- {
2
- "require": [
3
- "./test/mocha.setup.js"
4
- ]
5
- }
@@ -1,3 +0,0 @@
1
- {
2
- "plugins": ["iobroker", "license"]
3
- }