Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New eslint #872

Closed
wants to merge 1,187 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1187 commits
Select commit Hold shift + click to select a range
f9a2c64
fixed multiple problems with nested groups (#356)
foxriver76 Feb 5, 2024
b097b33
chore: release v2.9.29
foxriver76 Feb 5, 2024
24a8a2d
global css will no longer be deleted on adapter upload/update (#357)
foxriver76 Feb 5, 2024
3125a46
allow to modify style of navigation (#358)
foxriver76 Feb 6, 2024
d890180
chore: release v2.9.30
foxriver76 Feb 6, 2024
1fe1c9e
apply default overflow correctly (#359)
foxriver76 Feb 6, 2024
0de3a87
navigation style fixes (fix icon background and allow to customize he…
foxriver76 Feb 6, 2024
bd553fa
chore: release v2.9.31
foxriver76 Feb 6, 2024
f70991f
implemented buttons to show or hide all views in views manager (#361)
foxriver76 Feb 7, 2024
d0551f3
allow to disable sentry only for instance (#368)
foxriver76 Feb 16, 2024
45bcb6e
fixed issue with signals on RxWidgets (#369)
foxriver76 Feb 16, 2024
9286b98
chore: release v2.9.32
foxriver76 Feb 16, 2024
60a0cae
fixed issue that last image is never shown in image8 widget (#377)
foxriver76 Feb 20, 2024
edb370f
Ignore update of properties for fakeId
GermanBluefox Feb 21, 2024
77a7b6b
cleanup types for fakeId
foxriver76 Feb 21, 2024
7d2c40f
make it possible to click through signal image if in front of widget …
foxriver76 Feb 21, 2024
f5d4c3b
possibility to define background and title color for jqui dialog (#379)
foxriver76 Feb 21, 2024
ddcb513
chore: release v2.9.33
foxriver76 Feb 21, 2024
adaa2f8
Rename some variables
GermanBluefox Feb 25, 2024
89dc0c1
detect admin user correctly in project permissions dialog (#384)
foxriver76 Feb 26, 2024
6215c89
chore: release v2.9.34
foxriver76 Feb 26, 2024
33cbf59
fixed crash case for broken grouped widgets (#385)
foxriver76 Feb 27, 2024
26f3147
user-specified css has now priority over widgets css (#386)
foxriver76 Feb 27, 2024
19c79ff
chore: release v2.9.35
foxriver76 Feb 27, 2024
61f5eb9
fixed project-specific css not being applied (#389)
foxriver76 Feb 27, 2024
04c3a6c
chore: release v2.9.36
foxriver76 Feb 27, 2024
933524c
TimePicker widget now saves the time instead of date by default, if y…
foxriver76 Feb 28, 2024
3bef8c1
chore: release v2.9.37
foxriver76 Feb 28, 2024
9ecd6f5
fixed various problems with Date Picker widget (#392)
foxriver76 Mar 1, 2024
d9c371d
allow to use widget oid in bindings (#393)
foxriver76 Mar 1, 2024
ec1f377
chore: release v2.9.38
foxriver76 Mar 1, 2024
3133618
Added exception if vis-1 has UUID, so it is valid for vis-2
GermanBluefox Mar 1, 2024
d90c42b
Added the possibility to add suffix by navigation widgets
GermanBluefox Mar 1, 2024
63af212
Bump version
GermanBluefox Mar 1, 2024
68064c8
Updated packages
GermanBluefox Mar 1, 2024
4a3b178
chore: release v2.9.39
GermanBluefox Mar 1, 2024
d4f5ace
* (bluefox) Migrated the filter widget to react
GermanBluefox Mar 3, 2024
e075e7d
Removed onSelect in FileSelector
GermanBluefox Mar 3, 2024
5ed9566
Converted some files to typescript
GermanBluefox Mar 3, 2024
55ad808
Optimized upload of files
GermanBluefox Mar 4, 2024
97a68ba
Added reorder to Filter-Basic
GermanBluefox Mar 4, 2024
eb3eb70
Added reorder to Filter-Basic
GermanBluefox Mar 5, 2024
005afab
* (bluefox) Migrated the basic link widget to react
GermanBluefox Mar 5, 2024
ae483cf
Updated packages
GermanBluefox Mar 5, 2024
f3c2eb0
chore: release v2.9.40
GermanBluefox Mar 5, 2024
4efd604
* (bluefox) Allowed limiting the view size only on desktop
GermanBluefox Mar 5, 2024
b8b30f2
Changed some classes to TS
GermanBluefox Mar 6, 2024
6f35945
Changed some classes to TS
GermanBluefox Mar 6, 2024
7311335
Changed some classes to TS
GermanBluefox Mar 7, 2024
5b5ed85
* (bluefox) Change word "Filter" to "Search"
GermanBluefox Mar 9, 2024
820fc0c
* (bluefox) Change word "Filter" to "Search"
GermanBluefox Mar 9, 2024
e4ae7cb
chore: release v2.9.41
GermanBluefox Mar 9, 2024
67a7924
Corrected some errors in Filter widget
GermanBluefox Mar 9, 2024
02d64ac
chore: release v2.9.42
GermanBluefox Mar 9, 2024
6680b86
Move some files to TS
GermanBluefox Mar 10, 2024
4344220
Move some files to TS
GermanBluefox Mar 11, 2024
e789e52
Move some files to TS
GermanBluefox Mar 11, 2024
62c2d7f
Corrected readFile error
GermanBluefox Mar 11, 2024
3f68f17
Corrected readFile error
GermanBluefox Mar 12, 2024
b6bd813
Made all fields of RxWidgetInfoAttributesField readonly
GermanBluefox Mar 12, 2024
e627ca0
bring back type inference (#400)
foxriver76 Mar 12, 2024
702eded
Removed TS warnings
GermanBluefox Mar 12, 2024
0b91c2f
Removed TS warnings
GermanBluefox Mar 13, 2024
7becee3
Better Widget selector
GermanBluefox Mar 13, 2024
7881a27
* (bluefox) Showed selected view in the view dialog
GermanBluefox Mar 16, 2024
5d0b708
Bump version
GermanBluefox Mar 17, 2024
02e296c
chore: release v2.9.43
GermanBluefox Mar 17, 2024
16a0ade
Bump version
GermanBluefox Mar 17, 2024
94aa50d
chore: release v2.9.44
GermanBluefox Mar 17, 2024
35b8458
Migrated View to typescript
GermanBluefox Mar 19, 2024
48512cd
Migrated View to typescript
GermanBluefox Mar 19, 2024
fabf41a
chore: release v2.9.45
GermanBluefox Mar 19, 2024
3487cec
Corrected theme Change
GermanBluefox Mar 19, 2024
5ca6835
chore: release v2.9.46
GermanBluefox Mar 19, 2024
7e62d4c
Corrected theme Change
GermanBluefox Mar 19, 2024
86f9ef8
Corrected theme Change
GermanBluefox Mar 19, 2024
26ad509
chore: release v2.9.47
GermanBluefox Mar 19, 2024
17b5c6a
Fixed loading progress if project has no one view
GermanBluefox Mar 20, 2024
b9d1317
preparations for remote access
GermanBluefox Mar 24, 2024
6f9be24
preparations for remote access
GermanBluefox Mar 25, 2024
9c45149
Replace Connection with typescripted LegacyConnection
GermanBluefox Mar 30, 2024
978d701
chore: release v2.9.48
GermanBluefox Mar 30, 2024
ac43349
showed loading progress
GermanBluefox Mar 31, 2024
c6f50c4
Corrected instance selector
GermanBluefox Apr 2, 2024
7563f7c
* (bluefox) Corrected the scroll buttons in Tabs widget
GermanBluefox Apr 2, 2024
0ea3f77
started working towards separate type package
foxriver76 Apr 5, 2024
f9f1e8c
adapt GH actions
foxriver76 Apr 5, 2024
49da291
fix some ts errors
foxriver76 Apr 5, 2024
116186a
Better typing
GermanBluefox Apr 6, 2024
638e25a
add a test type to the types-vis-2 package
foxriver76 Apr 7, 2024
ab44376
try to fix build
foxriver76 Apr 7, 2024
8082552
build fixed
foxriver76 Apr 7, 2024
df69cb7
add rootdir to test and fix root mono pack json name
foxriver76 Apr 7, 2024
20969f8
Merge remote-tracking branch 'remotes/origin/vis-2-types-package'
GermanBluefox Apr 8, 2024
a77345a
Adjust image paths
GermanBluefox Apr 8, 2024
7b94a97
Corrected load of widgets
GermanBluefox Apr 8, 2024
ef8cb1c
BasicGroup Group migrated to TS
GermanBluefox Apr 8, 2024
eed2688
Removed check for permission in the project selection dialog as we mu…
GermanBluefox Apr 9, 2024
e88b8f4
chai 4
GermanBluefox Apr 10, 2024
bf1c0dd
Change sub-repo name
GermanBluefox Apr 10, 2024
f6597f3
Rename iobroker.vis-2
GermanBluefox Apr 10, 2024
a176671
Fixed tests
GermanBluefox Apr 10, 2024
ac8ff10
Fixed tests
GermanBluefox Apr 11, 2024
deaebb7
Bump version
GermanBluefox Apr 11, 2024
6962ec8
Bump version
GermanBluefox Apr 11, 2024
1fc8b7d
Fixed errors with Widget in Widget
GermanBluefox Apr 18, 2024
af8cd55
Fixed errors with Widget in Widget
GermanBluefox Apr 18, 2024
787c39e
Fixed errors with Widget in Widget
GermanBluefox Apr 18, 2024
8251c32
Fixed errors with Widget in Widget
GermanBluefox Apr 19, 2024
cfcd870
Formatting
GermanBluefox Apr 19, 2024
7d65ea2
* (bluefox) Corrected widget in widget behavior
GermanBluefox Apr 19, 2024
1bcfdc7
* (bluefox) Corrected widget in widget behavior
GermanBluefox Apr 19, 2024
6c80d5f
2.9.50
GermanBluefox Apr 19, 2024
ebf95cd
Fixed CI
GermanBluefox Apr 19, 2024
7fe7b08
* (bluefox) Navigation was improved
GermanBluefox Apr 25, 2024
1f10127
* (bluefox) Navigation was improved: adjustable menu width and bulk e…
GermanBluefox Apr 25, 2024
42e072d
Fixed CI
GermanBluefox Apr 25, 2024
61b196b
Fixed CI
GermanBluefox Apr 25, 2024
6ea6f1c
chore: release v2.9.51
GermanBluefox Apr 25, 2024
d47bcc0
Fixed CI
GermanBluefox Apr 25, 2024
64220ea
Fixed CI
GermanBluefox Apr 25, 2024
26266f4
Fixed CI
GermanBluefox Apr 25, 2024
a5b492e
chore: release v2.9.52
GermanBluefox Apr 25, 2024
438e801
Migrated palette to TS
GermanBluefox Apr 26, 2024
52fe07b
Migrated palette to TS
GermanBluefox Apr 27, 2024
da51b5f
Migrated palette to TS
GermanBluefox Apr 27, 2024
1dadd06
Migrated widget field to TS
GermanBluefox Apr 29, 2024
3a42349
Corrected user defined resolution
GermanBluefox May 6, 2024
fcfb6bb
Updated packages
GermanBluefox May 6, 2024
ccb7ba7
chore: release v2.9.53
GermanBluefox May 6, 2024
d800156
chore: release v2.9.54
foxriver76 May 7, 2024
e1d31ae
chore: release v2.9.55
foxriver76 May 7, 2024
222715e
chore: release v2.9.56
foxriver76 May 7, 2024
1797d27
chore: release v2.9.57
foxriver76 May 7, 2024
506e5cc
chore: release v2.9.58
foxriver76 May 7, 2024
bdc1adb
chore: release v2.9.59
foxriver76 May 7, 2024
f03291d
chore: release v2.9.60
foxriver76 May 7, 2024
922faaa
* (bluefox) Migrated some files to typescript
GermanBluefox May 14, 2024
44e3d95
chore: release v2.9.61
GermanBluefox May 14, 2024
1e0a9e8
* (bluefox) Migrated some files to typescript
GermanBluefox May 15, 2024
0ce0836
* (bluefox) Migrated some files to typescript
GermanBluefox May 15, 2024
97026f8
chore: release v2.9.62
GermanBluefox May 15, 2024
97d3771
* (bluefox) Migrated some files to typescript
GermanBluefox May 15, 2024
7c58105
* (bluefox) Migrated some files to typescript
GermanBluefox May 15, 2024
366f679
chore: release v2.9.63
GermanBluefox May 15, 2024
cabeca3
Catch permission error
GermanBluefox May 17, 2024
295be87
* (bluefox) Added possibility to clear a text field by button
GermanBluefox May 23, 2024
0d51fb9
chore: release v2.9.64
GermanBluefox May 23, 2024
c2d8276
updated packages
GermanBluefox May 25, 2024
814b04a
Typescript
GermanBluefox May 26, 2024
b3cb479
Fixed toggle of absolute/relative
GermanBluefox May 27, 2024
f029413
Better types
GermanBluefox May 27, 2024
d14041d
coerrected CI
GermanBluefox May 29, 2024
2bd9533
Corrected paths
GermanBluefox Jun 7, 2024
b7e33cf
Added readme to npm package
GermanBluefox Jun 7, 2024
d67b4cf
Typo
GermanBluefox Jun 9, 2024
1e4c22d
show default image in widget
GermanBluefox Jun 10, 2024
4fbd645
used latest adapter-react
GermanBluefox Jun 10, 2024
c759efd
used latest adapter-react
GermanBluefox Jun 10, 2024
d7a494e
add sendTo command to the conn object, that widgets can communicate w…
oweitman Jun 13, 2024
1a92b1c
add subscribe/unsubscribe command to the vis object, that widgets can…
oweitman Jun 13, 2024
495ef8f
add section Developement and Debugging to readme
oweitman Jun 13, 2024
90a76c5
fix start command
oweitman Jun 13, 2024
667f906
mention the already running iobroker
oweitman Jun 13, 2024
0d33622
typescript code
DileSoft Jun 14, 2024
b148c4e
typescript code
DileSoft Jun 14, 2024
02c593e
typescript code
DileSoft Jun 14, 2024
eb810a0
typescript code
DileSoft Jun 17, 2024
d00909c
typescript code
DileSoft Jun 17, 2024
04f0fba
typescript code
DileSoft Jun 17, 2024
73e941f
eslint rule
DileSoft Jun 20, 2024
10f8f70
typescript code
DileSoft Jun 20, 2024
63e9762
typescript code
DileSoft Jun 21, 2024
8cc7d66
typescript code
DileSoft Jun 22, 2024
8d5a62c
typescript code
DileSoft Jun 22, 2024
fada29a
typescript code
DileSoft Jun 22, 2024
62a002a
typescript code
DileSoft Jun 25, 2024
93f2b1a
typescript code
DileSoft Jun 25, 2024
fc49896
Remove withStyles
GermanBluefox Jun 26, 2024
d84d209
Remove withStyles
GermanBluefox Jun 26, 2024
c06076f
Remove withStyles
GermanBluefox Jun 26, 2024
fe925d1
Remove withStyles
GermanBluefox Jun 27, 2024
e694873
Remove withStyles
GermanBluefox Jun 30, 2024
aca101c
Fixed hide of groups
GermanBluefox Jul 4, 2024
d2f98a4
Corrected navigation
GermanBluefox Jul 7, 2024
39122df
Trim name of view
GermanBluefox Jul 7, 2024
648438f
Corrected types
GermanBluefox Jul 7, 2024
7294346
updated packages
GermanBluefox Jul 7, 2024
c57928d
updated packages
GermanBluefox Jul 7, 2024
a52f95e
* (bluefox) Removed incompatible package for styles
GermanBluefox Jul 7, 2024
2400e5b
Fixing linter warnings
GermanBluefox Jul 7, 2024
d4c61d4
chore: release v2.10.0
GermanBluefox Jul 7, 2024
0d25d90
Merge remote-tracking branch 'remotes/oweitman/master'
GermanBluefox Jul 7, 2024
36b50ce
Merge branch 'master' of https://github.com/ioBroker/ioBroker.vis-2
GermanBluefox Jul 7, 2024
6b430ba
added compatibility for vis-2
GermanBluefox Jul 7, 2024
9340cfc
Fixed Group problem
GermanBluefox Jul 7, 2024
54a7884
chore: release v2.10.1
GermanBluefox Jul 7, 2024
0938952
Fixed background color by loading
GermanBluefox Jul 8, 2024
d750180
Migrated basic input value widget to react
GermanBluefox Jul 10, 2024
fbb4aef
Small typing changes
GermanBluefox Jul 10, 2024
bb42dfb
Corrected style of select widget
GermanBluefox Jul 10, 2024
052eb70
chore: release v2.10.1
GermanBluefox Jul 10, 2024
f2be83f
Bump version
GermanBluefox Jul 10, 2024
26cf81f
chore: release v2.10.2
GermanBluefox Jul 10, 2024
72c81b6
Implemented clone for groups
GermanBluefox Jul 10, 2024
fa93b3d
Corrected widget selector
GermanBluefox Jul 10, 2024
a14dbd2
CanWidget was migrated to TypeScript
GermanBluefox Jul 11, 2024
e9142f4
chore: release v2.10.3
GermanBluefox Jul 11, 2024
ce52bf0
Check if page is null
GermanBluefox Jul 12, 2024
ccc5a45
Added "adapters" setting for attributes
GermanBluefox Jul 12, 2024
5e746fc
Implemented iFrame8
GermanBluefox Jul 12, 2024
d39613f
Layout of settings
GermanBluefox Jul 12, 2024
147274f
* (bluefox) Corrected the jumping by object selection
GermanBluefox Jul 14, 2024
4e24309
Implemented swipe widget
GermanBluefox Jul 16, 2024
05d4d80
Styled text in widgets filter
GermanBluefox Jul 16, 2024
d89c9cd
chore: release v2.10.4
GermanBluefox Jul 16, 2024
41e5414
Sanitize vis instance
GermanBluefox Jul 16, 2024
12902d7
Fixed vis-2 links in intro
GermanBluefox Jul 18, 2024
2142232
* (bluefox) Improved the typing in typescript
GermanBluefox Jul 19, 2024
357231d
chore: release v2.10.5
GermanBluefox Jul 19, 2024
0d55ba8
* (bluefox) Improved the typing in typescript
GermanBluefox Jul 20, 2024
580189b
* (bluefox) Improved the typing in typescript
GermanBluefox Jul 20, 2024
548af99
* (bluefox) Improved the typing in typescript
GermanBluefox Jul 20, 2024
725d392
chore: release v2.10.6
GermanBluefox Jul 20, 2024
ffb2361
Added index.js to types
GermanBluefox Jul 20, 2024
de0821c
Packages updated
GermanBluefox Jul 20, 2024
d5568b7
Updated license link
GermanBluefox Jul 21, 2024
cf88e7c
Updated license
GermanBluefox Jul 21, 2024
d78f3e8
Fixed backend
GermanBluefox Jul 23, 2024
deae00b
* (bluefox) Optimization of the module federation
GermanBluefox Jul 23, 2024
c612948
chore: release v2.10.7
GermanBluefox Jul 23, 2024
4fe44f6
Added i18n name for runtime link
GermanBluefox Aug 4, 2024
437d432
Added i18n name for runtime link
GermanBluefox Aug 4, 2024
02b9628
Added new view option: Limit only for specific instances (#490)
GermanBluefox Nov 22, 2024
183d407
chore: release v2.10.8
GermanBluefox Nov 22, 2024
bf4385b
New eslint config
GermanBluefox Nov 28, 2024
24e76de
New eslint config
GermanBluefox Nov 29, 2024
7375bc4
Converted all files to TS
GermanBluefox Nov 30, 2024
8f6fe24
Converted all files to TS
GermanBluefox Nov 30, 2024
02d2194
Converted all files to TS
GermanBluefox Nov 30, 2024
7134cb3
Rename vis folder to src-vis
GermanBluefox Nov 30, 2024
037f878
Migrated backedn to TS
GermanBluefox Dec 1, 2024
3b9132c
- Migrated widgets to React: basic - frame, basic - note, basic - logout
GermanBluefox Dec 1, 2024
e13f673
Improver upload indicator
GermanBluefox Dec 1, 2024
e4206fe
Added @types/jsonwebtoken
GermanBluefox Dec 1, 2024
6195442
Fixed tests
GermanBluefox Dec 1, 2024
29782d0
Trying to fix tests
GermanBluefox Dec 2, 2024
278e65e
Trying to fix tests
GermanBluefox Dec 2, 2024
9fb5548
Added ID for tests
GermanBluefox Dec 2, 2024
1fae173
Added ID for tests
GermanBluefox Dec 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
32 changes: 0 additions & 32 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

94 changes: 94 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
name: Bug Report
description: Something is not working as it should
title: "[bug]: "
labels: ["bug :lady_beetle:"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this report!

- type: checkboxes
id: checked-other-issues
attributes:
label: No existing issues.
description: By submitting this issue, you confirm, that you have checked the existing issues for your problem.
options:
- label: There is no existing issue for my problem.
required: true

- type: textarea
id: description
attributes:
label: Describe the bug
description: A clear and concise description of what the bug is.
validations:
required: true

- type: textarea
id: reproduction
attributes:
label: To Reproduce
description: Steps to reproduce the behavior
placeholder: |
1. Go to '...'
2. Click on '...'
3. Scroll down to '....'
4. See error
validations:
required: true

- type: textarea
attributes:
label: Expected behavior
description: A clear and concise description of what you expected to happen.
validations:
required: true

- type: textarea
attributes:
label: Screenshots & Logfiles
description: If applicable, add screenshots and logfiles to help explain your problem.
validations:
required: true

- type: textarea
attributes:
label: Page or affected widget
render: shell
description: If applicable, add an export of the affected widget or page.
validations:
required: false

- type: input
attributes:
label: Adapter version
validations:
required: true

- type: input
attributes:
label: js-controller version
description: determine this with "iobroker -v" on the console
validations:
required: true

- type: input
attributes:
label: Node version
description: determine this with "node -v" on the console
validations:
required: true

- type: input
attributes:
label: Operating system
validations:
required: true

- type: textarea
attributes:
label: Additional context
description: Add any other context or screenshots about the feature request here.
validations:
required: false
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: ioBroker Forum
url: https://forum.iobroker.net/
about: Please ask and answer questions here.
20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

41 changes: 41 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Feature request
description: Suggest an idea for this project
title: "[enhancement]: "
labels: ["enhancement :bulb:"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this report!

- type: checkboxes
id: checked-other-issues
attributes:
label: No existing issues.
description: By submitting this issue, you confirm, that you have checked the existing issues for your request.
options:
- label: There is no existing issue for my request.
required: true

- type: textarea
attributes:
label: Related problems
description: Is your feature request related to a problem? Please describe.
placeholder: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
validations:
required: true

- type: textarea
attributes:
label: Description
description: Describe the solution you'd like
placeholder: A clear and concise description of what you want to happen.
validations:
required: true

- type: textarea
attributes:
label: Additional context
description: Add any other context or screenshots about the feature request here.
validations:
required: false
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,11 @@ updates:
timezone: Europe/Berlin
open-pull-requests-limit: 5
versioning-strategy: increase
- package-ecosystem: npm
directory: "/src"
schedule:
interval: monthly
time: "04:00"
timezone: Europe/Berlin
open-pull-requests-limit: 5
versioning-strategy: increase
121 changes: 52 additions & 69 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,94 +22,63 @@ concurrency:
cancel-in-progress: true

jobs:
# Performs quick checks before the expensive test runs
check-and-lint:
adapter-tests-gui:
if: contains(github.event.head_commit.message, '[skip ci]') == false

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}

- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- 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

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

needs: [check-and-lint]
- name: Install Monorepo
run: npm run install-monorepo

runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
os: [ubuntu-latest, windows-latest, macos-latest]
- name: Build
run: NODE_OPTIONS=--max_old_space_size=8192 npm run build

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install Dependencies
run: npm install --ignore-scripts
- name: Test TypeScript
run: npm run check-ts -w packages/iobroker.vis-2

- name: Run local tests
run: npm test
# - name: Run unit tests
# run: npm run test:unit
# - name: Run integration tests # (linux/osx)
# if: startsWith(runner.OS, 'windows') == false
# run: DEBUG=testing:* npm run test:integration
# - name: Run integration tests # (windows)
# if: startsWith(runner.OS, 'windows')
# run: set DEBUG=testing:* & npm run test:integration
run: npm run test-gui -w packages/iobroker.vis-2

- name: Archive screenshots
if: always()
# if: failure()
uses: actions/upload-artifact@v3
with:
path: packages/iobroker.vis-2/tmp/screenshots/**/*.png
retention-days: 3

# Deploys the final package to NPM
deploy:
needs: [adapter-tests]
needs: [adapter-tests-gui]

# Trigger this step only when a commit on master is tagged with a version number
if: |
contains(github.event.head_commit.message, '[skip ci]') == false &&
github.event_name == 'push' &&
startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
runs-on: macos-latest # ubuntu-latest has too few RAM

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: 'master'

- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
node-version: 18.x

- name: Extract the version and commit body from the tag
id: extract_release
# The body may be multiline, therefore we need to escape some characters
# The body may be multiline, therefore, we need to escape some characters
run: |
VERSION="${{ github.ref }}"
VERSION=${VERSION##*/}
Expand All @@ -122,15 +91,26 @@ jobs:
echo "::set-output name=BODY::$BODY"

- name: Install Dependencies
run: npm install --ignore-scripts
run: npm run install-monorepo

- name: Create a clean build
run: npm run build

- name: Publish package to npm
env:
VERSION: ${{ steps.extract_release.outputs.VERSION }}
run: |
npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
npm whoami
npm publish

git add .
git config --global user.email "[email protected]"
git config --global user.name "Github Action"
git commit -m "v${VERSION}" && npx lerna version ${VERSION} --no-push --exact --no-commit-hooks --yes --amend --force-publish || npx lerna version ${VERSION} --exact --no-push --no-commit-hooks --yes --force-publish

git status

npx lerna publish from-package --yes

- name: Create Github Release
uses: actions/create-release@v1
Expand All @@ -144,16 +124,19 @@ jobs:
prerelease: ${{ contains(steps.extract_release.outputs.VERSION, '-') }}
body: ${{ steps.extract_release.outputs.BODY }}

#- name: Notify Sentry.io about the release
# run: |
# npm i -g @sentry/cli
# export SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}
# export SENTRY_URL=https://sentry.iobroker.net
# export SENTRY_ORG=iobroker
# export SENTRY_PROJECT=iobroker-iot
# export SENTRY_VERSION=iobroker.iot@${{ env.VERSION }}
# sentry-cli releases new $SENTRY_VERSION
# sentry-cli releases finalize $SENTRY_VERSION
- name: Notify Sentry.io about the release
run: |
npm i -g @sentry/cli
export SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}
export SENTRY_URL=https://sentry.iobroker.net
export SENTRY_ORG=iobroker
export SENTRY_PROJECT=iobroker-vis-2
export SENTRY_VERSION=iobroker.vis-2@${{ steps.extract_release.outputs.VERSION }}
export SENTRY_RELEASE=${{ steps.extract_release.outputs.VERSION }}
sentry-cli releases new $SENTRY_VERSION
sentry-cli releases finalize $SENTRY_VERSION
sentry-cli sourcemaps inject ./www
sentry-cli sourcemaps upload ./www

# Add the following line BEFORE finalize if repositories are connected in Sentry
# sentry-cli releases set-commits $SENTRY_VERSION --auto
Expand Down
Loading
Loading