Merge pull request #1 from silly82/copilot/reine-nodered-loesung-victron #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check Python syntax | |
| run: | | |
| python3 -m py_compile venusos/dbus_mqtt_battery.py | |
| echo "Python syntax OK" | |
| - name: Validate JSON | |
| run: | | |
| python3 -c "import json; json.load(open('flows.json')); print('flows.json: valid')" | |
| - name: Check ESP32 sketch basics | |
| run: | | |
| grep -q "void setup" esp32_jbd_ble_mqtt/esp32_jbd_ble_mqtt.ino && echo "setup() found" || exit 1 | |
| grep -q "void loop" esp32_jbd_ble_mqtt/esp32_jbd_ble_mqtt.ino && echo "loop() found" || exit 1 | |
| echo "INO basics OK" | |
| - name: Check README | |
| run: | | |
| test -f README.md && echo "README exists" | |
| grep -q "JBD" README.md && echo "README has content" |