NEWS
@alcalzone/release-script Hilfe beim Einrichten von Actions
-
Hallo,
kann mir einer sagen wo der Fehler liegt?adapter-tests (14.x, ubuntu-latest) failed 9 hours ago in 4s Search logs 1s 2s Run ioBroker/testing-action-adapter@v1 Run actions/checkout@v2 Syncing repository: Dirk-Peter-md/ioBroker.sprinklecontrol Getting Git version info Temporarily overriding HOME='/home/runner/work/_temp/61843c38-eff3-4504-b8f5-882151aa4596' before making global git config changes Adding repository directory to the temporary git global config as a safe directory /usr/bin/git config --global --add safe.directory /home/runner/work/ioBroker.sprinklecontrol/ioBroker.sprinklecontrol Deleting the contents of '/home/runner/work/ioBroker.sprinklecontrol/ioBroker.sprinklecontrol' Initializing the repository Disabling automatic garbage collection Setting up auth Fetching the repository Determining the checkout info Checking out the ref /usr/bin/git log -1 --format='%H' '4c364de1688fc9bf40b085b88c4bb70c3d19488a' Run actions/setup-node@v2 Found in cache @ /opt/hostedtoolcache/node/14.20.0/x64 /opt/hostedtoolcache/node/14.20.0/x64/bin/npm config get cache /home/runner/.npm Error: Dependencies lock file is not found in /home/runner/work/ioBroker.sprinklecontrol/ioBroker.sprinklecontrol. Supported file patterns: package-lock.json,yarn.lock 0s
Die package-lock.json liegt doch auf GitHub.
MfG Dirk Peter
-
@dirk-peter sagte in @alcalzone/release-script Hilfe beim Einrichten von Actions:
Die package-lock.json liegt doch auf GitHub.
Aber nicht auf dem Tag, welches du versuchst zu releasen, das hast du erst danach hinzugefügt:
https://github.com/Dirk-Peter-md/ioBroker.sprinklecontrol/tree/v0.2.13Entweder mach ein neues Release, oder verschiebe den Tag:
git checkout master git tag --delete v0.2.13 git push --delete origin v0.2.13 git tag v0.2.13 git push origin v0.2.13
-
@alcalzone
Danke, jetzt bin ich schon ein Stück weiter. Jetzt bekomme ich aber diese Meldung!adapter-tests (14.x, ubuntu-latest) failed 2 minutes ago in 12s Search logs 1s 10s Run ioBroker/testing-action-adapter@v1 Run actions/checkout@v2 Syncing repository: Dirk-Peter-md/ioBroker.sprinklecontrol Getting Git version info Temporarily overriding HOME='/home/runner/work/_temp/c86b71b2-e313-46bf-827d-cf812149d55e' before making global git config changes Adding repository directory to the temporary git global config as a safe directory /usr/bin/git config --global --add safe.directory /home/runner/work/ioBroker.sprinklecontrol/ioBroker.sprinklecontrol Deleting the contents of '/home/runner/work/ioBroker.sprinklecontrol/ioBroker.sprinklecontrol' Initializing the repository Disabling automatic garbage collection Setting up auth Fetching the repository Determining the checkout info Checking out the ref /usr/bin/git log -1 --format='%H' '00c5b82f3379ef9de7c88cd3fe8625d46d9a90f9' Run actions/setup-node@v2 Found in cache @ /opt/hostedtoolcache/node/14.20.0/x64 /opt/hostedtoolcache/node/14.20.0/x64/bin/npm config get cache /home/runner/.npm npm cache is not found Run npm ci > fsevents@1.2.13 install /home/runner/work/ioBroker.sprinklecontrol/ioBroker.sprinklecontrol/node_modules/glob-watcher/node_modules/fsevents > node install.js Skipping 'fsevents' build as platform linux is not supported > es5-ext@0.10.62 postinstall /home/runner/work/ioBroker.sprinklecontrol/ioBroker.sprinklecontrol/node_modules/es5-ext > node -e "try{require('./_postinstall')}catch(e){}" || exit 0 added 646 packages in 4.846s Run if false; then Skipping build step... Run if [[ "false" == "false" ]] ; then Skipping build step... Run if npm run | grep -q "test:unit" ; then Unit test script found > iobroker.sprinklecontrol@0.2.13 test:unit /home/runner/work/ioBroker.sprinklecontrol/ioBroker.sprinklecontrol > mocha test/unit --exit Error: No test files found: "test/unit" npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! iobroker.sprinklecontrol@0.2.13 test:unit: `mocha test/unit --exit` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the iobroker.sprinklecontrol@0.2.13 test:unit script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/runner/.npm/_logs/2022-09-07T10_10_13_747Z-debug.log Error: Process completed with exit code 1.
Brauch ich da noch die test/unit.js?
-
@dirk-peter Die brauchst du eigentlich nicht mehr. In package.json wird aber noch drauf verwiesen:
https://github.com/Dirk-Peter-md/ioBroker.sprinklecontrol/blob/00c5b82f3379ef9de7c88cd3fe8625d46d9a90f9/package.json#L57
Lösch die Zeile und dann sollte es gehen. -
@alcalzone Hallo, wie es aussieht habe ich es fast geschafft!
check-and-lint failed 16 minutes ago in 11s Search logs 1s 9s Run ioBroker/testing-action-check@v1 Run actions/checkout@v2 Syncing repository: Dirk-Peter-md/ioBroker.sprinklecontrol Getting Git version info Temporarily overriding HOME='/home/runner/work/_temp/bc5bbe08-5bd5-418a-a9db-4e2a6c1e307e' before making global git config changes Adding repository directory to the temporary git global config as a safe directory /usr/bin/git config --global --add safe.directory /home/runner/work/ioBroker.sprinklecontrol/ioBroker.sprinklecontrol Deleting the contents of '/home/runner/work/ioBroker.sprinklecontrol/ioBroker.sprinklecontrol' Initializing the repository Disabling automatic garbage collection Setting up auth Fetching the repository Determining the checkout info Checking out the ref /usr/bin/git log -1 --format='%H' '6c2cca1812f4d7db05eb81b36da38bd26a59bfb9' Run actions/setup-node@v2 Found in cache @ /opt/hostedtoolcache/node/16.17.0/x64 /opt/hostedtoolcache/node/16.17.0/x64/bin/npm config get cache /home/runner/.npm Received 44539737 of 44539737 (100.0%), 73.5 MBs/sec Cache Size: ~42 MB (44539737 B) /usr/bin/tar --use-compress-program zstd -d -xf /home/runner/work/_temp/535de232-a733-466c-9316-b2969d3aa208/cache.tzst -P -C /home/runner/work/ioBroker.sprinklecontrol/ioBroker.sprinklecontrol Cache restored successfully Cache restored from key: node-cache-Linux-npm-7ef6fefdee69c394c52ce770bf843623dd555c77900a0edb61dc8c9cba1a210b Run npm ci npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies npm WARN deprecated tslint@6.1.3: TSLint has been deprecated in favor of ESLint. Please see https://github.com/palantir/tslint/issues/4534 for more information. added 642 packages, and audited 643 packages in 5s 52 packages are looking for funding run `npm fund` for details 6 high severity vulnerabilities To address issues that do not require attention, run: npm audit fix To address all issues (including breaking changes), run: npm audit fix --force Run `npm audit` for details. Run if false; then Skipping type check... Run if true; then npm ERR! Missing script: "lint" npm ERR! npm ERR! Did you mean this? npm ERR! npm link # Symlink a package folder npm ERR! npm ERR! To see a list of scripts, run: npm ERR! npm run npm ERR! A complete log of this run can be found in: npm ERR! /home/runner/.npm/_logs/2022-09-07T21_07_12_464Z-debug-0.log Error: Process completed with exit code 1.
Da muss ich "tslint": "^6.1.3" wohl deinstallieren, da "eslint": "^8.23.0", schon existiert und tslint veraltet ist.
Ist das korrekt? -
@dirk-peter Ich weiß nicht was du da für seltsame Änderungen an package.json und den Dependencies gemacht hast...
ESLint ist von Haus aus an Bord, wenn du mit dem Creator einen Adapter erstellst. Dann ist auch das lint-Skript existent.
tslint
hat da gar nix zu suchen, das ist für TypeScript (dein Adapter ist JavaScript) und außerdem hoffnungslos veraltet.Vorschlag: Erstelle mal einen neuen Adapter mit dem Creator und kopiere einfach deine Anpassungen aus main.js an die richtigen Stellen, sowie die zusätzlichen js-Dateien die du requirest und io-package.json news, Changelog, etc...
-
@alcalzone
Sorry, bin ein blutiger Anfänger, aber du hast recht. Es wird Zeit ein neues Grundgerüst zu erstellen.
Danke für die Hilfe Dirk Peter