mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-12-03 19:53:04 +05:00
* fix: make W5500 interrupt and reset pins optional
* feat: rework the network settings page
* build: split elvinhome THRM ONE into BLE and Ethernet environments
* ci: target dev for Dependabot version updates
* chore: bump actions/cache from 5 to 6 (#302)
Bumps [actions/cache](https://github.com/actions/cache) from 5 to 6.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v5...v6)
---
updated-dependencies:
- dependency-name: actions/cache
dependency-version: '6'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore: bump actions/setup-python from 6 to 7 (#303)
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 6 to 7.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v6...v7)
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-version: '7'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore: bump actions/download-artifact from 5 to 8 (#304)
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 5 to 8.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v5...v8)
---
updated-dependencies:
- dependency-name: actions/download-artifact
dependency-version: '8'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore: bump actions/checkout from 6 to 7 (#305)
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v6...v7)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: '7'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore: bump actions/setup-node from 5 to 6 (#306)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 5 to 6.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v5...v6)
---
updated-dependencies:
- dependency-name: actions/setup-node
dependency-version: '6'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* revert: restore the default branch for Dependabot version updates
This reverts commit a7b2120740.
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
118 lines
2.9 KiB
YAML
118 lines
2.9 KiB
YAML
name: CI
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
pull_request:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
validate-json:
|
|
name: Validate JSON
|
|
# A push already checks updates to PRs from this repository.
|
|
if: >-
|
|
github.event.action != 'synchronize' ||
|
|
github.event.pull_request.head.repo.full_name != github.repository
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Install jq
|
|
run: sudo apt-get update && sudo apt-get install -y jq
|
|
|
|
- name: Validate
|
|
shell: bash
|
|
run: |
|
|
set -euo pipefail
|
|
|
|
echo "Searching JSON files in src_data..."
|
|
|
|
files=$(find src_data -type f -iname "*.json")
|
|
|
|
if [ -z "$files" ]; then
|
|
echo "No JSON files found."
|
|
exit 0
|
|
fi
|
|
|
|
failed=0
|
|
|
|
for file in $files; do
|
|
echo "Validating: $file"
|
|
|
|
if ! jq empty "$file" >/dev/null 2>&1; then
|
|
echo "❌ Invalid JSON: $file"
|
|
failed=1
|
|
else
|
|
echo "✅ Valid JSON: $file"
|
|
fi
|
|
done
|
|
|
|
if [ "$failed" -ne 0 ]; then
|
|
echo ""
|
|
echo "JSON validation failed."
|
|
exit 1
|
|
fi
|
|
|
|
echo ""
|
|
echo "All JSON files are valid."
|
|
|
|
cpplint:
|
|
name: cpplint
|
|
if: >-
|
|
github.event.action != 'synchronize' ||
|
|
github.event.pull_request.head.repo.full_name != github.repository
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Cache
|
|
uses: actions/cache@v6
|
|
with:
|
|
key: ${{ runner.os }}-cpplint
|
|
path: ~/.cache/pip
|
|
|
|
- name: Python
|
|
uses: actions/setup-python@v7
|
|
with:
|
|
python-version: "3.x"
|
|
|
|
- name: Install cpplint
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install --upgrade cpplint
|
|
|
|
- name: cpplint
|
|
run: |
|
|
FILTERS="-legal/copyright,\
|
|
-runtime/int,\
|
|
-runtime/references,\
|
|
-runtime/indentation_namespace,\
|
|
-runtime/arrays,\
|
|
-runtime/printf,\
|
|
-whitespace/line_length,\
|
|
-whitespace/braces,\
|
|
-whitespace/comments,\
|
|
-whitespace/indent,\
|
|
-whitespace/newline,\
|
|
-whitespace/parens,\
|
|
-whitespace/blank_line,\
|
|
-readability/braces,\
|
|
-readability/todo,\
|
|
-readability/namespace,\
|
|
-build/header_guard,\
|
|
-build/include_subdir,\
|
|
-build/include_what_you_use,\
|
|
-build/namespaces,\
|
|
-build/c++11"
|
|
|
|
cpplint \
|
|
--repository=. \
|
|
--recursive \
|
|
--quiet \
|
|
--filter="$FILTERS" \
|
|
include lib src
|