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

DevOps: Linting #78

Open
wants to merge 124 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
9241311
Update issue templates
TheRealKasumi Jun 28, 2022
1c1c33c
Rework and extend logging.
TheRealKasumi Jul 7, 2022
fb2e116
Update from internal dev.
TheRealKasumi Aug 19, 2022
7d1984c
Add first ReadMe.
TheRealKasumi Aug 19, 2022
7872c09
Update ReadMe.md
TheRealKasumi Aug 19, 2022
6539dbf
Update ReadMe.md
TheRealKasumi Aug 19, 2022
ddc3257
Add part list. (#5)
TheRealKasumi Sep 4, 2022
5c1773c
feat (documentation) add planning notes (#4)
TheRealKasumi Sep 4, 2022
9996437
Fix broken links. (#7)
TheRealKasumi Sep 4, 2022
7d11aa2
fix (rainbow) use trapezoidal wave form (#8)
TheRealKasumi Sep 6, 2022
8d9418b
Multiple fixes. (#10)
TheRealKasumi Sep 9, 2022
c00b91f
feat (switch) control TesLight by OEM ambient light (#13)
TheRealKasumi Sep 13, 2022
f99014a
Remove comments (#15)
TheRealKasumi Sep 13, 2022
e715926
feat (documentation) add documentation about the building process (#11)
TheRealKasumi Sep 17, 2022
6c25c97
fix various issues (#19)
TheRealKasumi Sep 17, 2022
b2d2a5e
Adjust case size for voltage regulator. (#20)
TheRealKasumi Sep 17, 2022
f0bc8a4
Fix 3D models.
TheRealKasumi Sep 17, 2022
56c62a8
Small documentation adjustment
TheRealKasumi Sep 17, 2022
f96d97a
Update to latest ESP32 core and do some secret stuff ;)
TheRealKasumi Sep 30, 2022
cbf7c6f
Fix issue by lading all pixel into a buffer at once. (#24)
TheRealKasumi Sep 30, 2022
49dbfa7
Fix stability issues and improve server.
TheRealKasumi Oct 1, 2022
d1f6e38
Add endpoints for access to log. (#25)
TheRealKasumi Oct 3, 2022
1a9ba4e
Fix micros overflow issue. (#26)
TheRealKasumi Oct 3, 2022
43433c9
Update part list to add fuse and fuse holder
TheRealKasumi Oct 8, 2022
1860c43
Add Git to the required tools
TheRealKasumi Oct 9, 2022
b78c0c2
Update to new frontend. (#30)
TheRealKasumi Oct 13, 2022
20ca998
Implement power limit (#31)
TheRealKasumi Oct 14, 2022
6e2a280
Implement OTA updates. (#33)
TheRealKasumi Oct 18, 2022
443dd82
Add LED count setting to new UI. (#35)
TheRealKasumi Oct 20, 2022
a1fa4ca
Fix upload related bug.
TheRealKasumi Oct 23, 2022
0f9c097
feat (documentation) update documentation for new hardware (#40)
TheRealKasumi Nov 7, 2022
a7ca880
feat (hardware) migrate to new hardware version 2 (#41)
TheRealKasumi Nov 7, 2022
2d04e83
Remove unused images.
TheRealKasumi Nov 7, 2022
ee8f1c2
Remove unused images.
TheRealKasumi Nov 7, 2022
95d6530
Update PCB and add heatsink to optinal parts.
TheRealKasumi Nov 7, 2022
040336c
Fix some typos (#43)
TheRealKasumi Nov 10, 2022
e53067d
feat (HW 2.1) upgrade to hardware version 2.1 and implement related f…
TheRealKasumi Nov 20, 2022
d86f316
Bug fixes.
TheRealKasumi Nov 21, 2022
da3d787
Typo in documentation
TheRealKasumi Nov 21, 2022
c3efcb9
Create PlatformIO build action.
TheRealKasumi Nov 21, 2022
41369bc
Build badge in readme
TheRealKasumi Nov 21, 2022
e1dbf4b
Fixes
TheRealKasumi Nov 28, 2022
87d7f67
Implement motion sensor to turn on/off TesLight, also updating BOM on…
TheRealKasumi Dec 2, 2022
2347b27
Save motion sensor calibration (#51)
TheRealKasumi Dec 3, 2022
5c623b7
small typo fixes (#53)
JakobLichterfeld Dec 5, 2022
c9728c2
small typo fixes in planning (#52)
JakobLichterfeld Dec 5, 2022
b24d6cc
Documentation: several enhancements (#65)
JakobLichterfeld Dec 9, 2022
39e233a
Add missing image.
TheRealKasumi Dec 11, 2022
64fd4b8
feat (models) add 3D models for the mcu v2 (#42)
TheRealKasumi Dec 22, 2022
e127927
Fix error in documentation
TheRealKasumi Dec 23, 2022
f4ff271
Relaunch UI (#67)
danielbayerlein Dec 24, 2022
c923682
Switch to json based Api (#69)
TheRealKasumi Dec 24, 2022
c66e44a
Update ReadMe.md
TheRealKasumi Dec 24, 2022
a8c23f1
Corrected AIO Case Version (#73)
rgrae81 Dec 24, 2022
74a61c9
feat (api) api endpoint for ui settings (#76)
TheRealKasumi Dec 26, 2022
1519fd4
Add license
TheRealKasumi Dec 27, 2022
95eac6b
DevOps: Linting: initial commit for Super-Linter on all branches and …
JakobLichterfeld Dec 28, 2022
95ad9b7
DevOps: Linting: badge in readme, #55
JakobLichterfeld Dec 28, 2022
cc4bfe9
DevOps: Linting: update action to be Node.js 16 compatible,see: https…
JakobLichterfeld Dec 28, 2022
4036d8a
DevOps: Linting: Super-Linter on all branches and all pull-requests, …
JakobLichterfeld Dec 28, 2022
3a51924
DevOps: Linting: badge in latest readme, #55
JakobLichterfeld Dec 28, 2022
d34d210
Merge branch 'main' into feat/DevOps_Linting
JakobLichterfeld Dec 28, 2022
28e056b
correct markdown format for lists
JakobLichterfeld Dec 28, 2022
b806345
linting fix: Incorrect usage of the term: “WiFi”, use “Wi-Fi” instead…
JakobLichterfeld Dec 28, 2022
78aa6be
linting fix: Incorrect usage of the term: “website”, use “site” inste…
JakobLichterfeld Dec 28, 2022
86004bc
docs: update app screenshot (#79)
danielbayerlein Dec 29, 2022
d4ee36e
Merge branch 'main' into feat/DevOps_Linting
TheRealKasumi Dec 29, 2022
64aa9eb
fix(ui): invalid min and max ranges (#82)
danielbayerlein Dec 29, 2022
394de42
feat(ui): add multi language support (#77)
danielbayerlein Dec 29, 2022
5f1ee92
doc: planning: adjust cable lengths (dashboard, front doors), accordi…
JakobLichterfeld Dec 29, 2022
ceba211
Merge branch 'main' into feat/DevOps_Linting
JakobLichterfeld Dec 29, 2022
1eec039
Documentation Build Guide: Reflect renaming of web-app to ui, #87 (#88)
JakobLichterfeld Jan 3, 2023
8ab07cf
Merge branch 'main' into feat/DevOps_Linting
JakobLichterfeld Jan 5, 2023
02e1dbe
Update ReadMe.md
TheRealKasumi Jan 8, 2023
424d042
Merge branch 'main' into feat/DevOps_Linting
JakobLichterfeld Jan 9, 2023
2e32bfb
feat (animation) add the new sparkele animator (#93)
TheRealKasumi Jan 14, 2023
a9afd57
feat(ui): add new animations (#94)
danielbayerlein Jan 14, 2023
b0551d4
fix(ui): units for automatic brightness (#97)
danielbayerlein Jan 17, 2023
ccf0f2b
fix(ui): missing update successful translation (#102)
danielbayerlein Jan 17, 2023
6d503aa
fix(ui): save the wifi configuration after the settings so that it is…
danielbayerlein Jan 17, 2023
b78459f
Merge branch 'main' into feat/DevOps_Linting
JakobLichterfeld Jan 19, 2023
f82d28a
Described Luminant Types for #90 (#105)
MathiasSeifert Jan 19, 2023
dcfa8cb
Merge branch 'main' into feat/DevOps_Linting
TheRealKasumi Jan 19, 2023
0d4f2e6
fix(ui): update wifi config only if there was a change (#108)
danielbayerlein Jan 20, 2023
262b44b
Merge branch 'main' into feat/DevOps_Linting
JakobLichterfeld Jan 20, 2023
51273fa
Adding system info endpoint and a lot of refactoring (#107)
TheRealKasumi Jan 20, 2023
d8561e7
refactor(ui): update translations (#112)
danielbayerlein Jan 21, 2023
a15ae34
feat(ui): add light theme (#115)
danielbayerlein Jan 21, 2023
3edeb7f
feat(ui): add expert mode (#116)
danielbayerlein Jan 21, 2023
9b3ae81
feat (fan) add multiple fan mode (#113)
TheRealKasumi Jan 21, 2023
fd881bc
feat(ui): add fan mode (#117)
danielbayerlein Jan 21, 2023
695fff4
Add audio unit (#118)
TheRealKasumi Jan 21, 2023
ce5220e
Small fix
TheRealKasumi Jan 21, 2023
f4b6c7f
Implement bouncing (#120)
TheRealKasumi Jan 22, 2023
ee2ae34
feat(ui): show only available hardware based options (#119)
danielbayerlein Jan 22, 2023
d18d82c
feat(ui): add bounce option for particles (#124)
danielbayerlein Jan 22, 2023
00c8131
Merge branch 'main' into feat/DevOps_Linting
JakobLichterfeld Jan 22, 2023
e88bb47
Fix wrong error message
TheRealKasumi Jan 23, 2023
d7daf11
fix(ui): update wifi config only if there was a change (#129)
danielbayerlein Jan 24, 2023
b6c60ec
Merge branch 'main' into feat/DevOps_Linting
JakobLichterfeld Jan 25, 2023
e88ffba
fix locale on Mac (#130)
TheRealKasumi Jan 26, 2023
d610bbe
feat(ui): add dataSource property and audio based sparkle effect (#133)
danielbayerlein Jan 27, 2023
1ee03af
feat (audio) audio based sparkle (#126)
TheRealKasumi Jan 27, 2023
73480cf
Update TUPFile.h
TheRealKasumi Jan 29, 2023
5fa3470
Update tup
TheRealKasumi Jan 29, 2023
1d6a1a1
feat(ui): add color switch (#139)
danielbayerlein Feb 3, 2023
0add650
Merge branch 'main' into feat/DevOps_Linting
JakobLichterfeld Feb 5, 2023
4a4c4d0
feat (driver) implement our own LED driver (#141)
TheRealKasumi Feb 5, 2023
8894418
fix (bh1750) invert light sensor (#143)
TheRealKasumi Feb 6, 2023
47d674e
Merge branch 'main' into feat/DevOps_Linting
JakobLichterfeld Feb 11, 2023
e52b965
chore(ui): update dependencies (#146)
danielbayerlein Feb 19, 2023
29df9bc
Merge branch 'main' into feat/DevOps_Linting
TheRealKasumi Feb 19, 2023
1b2fd03
feat(profiles): add profiles to ui (#148)
danielbayerlein Feb 19, 2023
0befc7f
Implement profiles on MCU side (#144)
TheRealKasumi Feb 19, 2023
79e56be
DevOps recharged (#135)
JakobLichterfeld Feb 22, 2023
5203389
chore(ui): update dependencies (#149)
danielbayerlein Feb 26, 2023
a662f66
Bump @braintree/sanitize-url and swagger-ui-react in /ui (#151)
dependabot[bot] Mar 3, 2023
2a676c2
fix(profiles): invalidate cache after profile switch (#150)
danielbayerlein Mar 3, 2023
a730120
Merge branch 'main' into feat/DevOps_Linting
JakobLichterfeld Mar 3, 2023
b805682
feat: add new pulse effect (#152)
TheRealKasumi Mar 5, 2023
da9efa1
chore(ui): update dependencies (#153)
danielbayerlein Mar 5, 2023
2467e9e
chore(ui): update dependencies (#165)
danielbayerlein Mar 10, 2023
28fd0bd
feat: add new EQ effect (#164)
TheRealKasumi Mar 11, 2023
c0f3b73
Merge branch 'main' into feat/DevOps_Linting
JakobLichterfeld Mar 11, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Information:**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 0.0.1]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
16 changes: 16 additions & 0 deletions .github/actions/get-correct-short-commit-sha/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#
name: 'Get correct short commit SHA'
description: 'Get correct short commit SHA and make available as env.short_sha'
runs:
using: "composite"
steps:
- name: Get correct short commit SHA
id: correct_commit_sha
shell: bash
run: |
calculatedSha=$(git rev-parse --short ${{ github.sha }})
echo "short_sha=$calculatedSha" >> $GITHUB_ENV

- name: Confirm git commit SHA output
shell: bash
run: echo ${{ env.short_sha }}
46 changes: 46 additions & 0 deletions .github/actions/platformio-build/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: 'PlatformIO Build'
description: 'PlatformIO Build'
runs:
using: "composite"
steps:
- uses: actions/checkout@v3

- name: Cache pip
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: ${{ runner.os }}-pip-

- name: Cache PlatformIO
uses: actions/cache@v3
with:
path: ~/.platformio
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install PlatformIO Core
shell: bash
run: |
python -m pip install --upgrade pip
pip install --upgrade platformio

- name: Build PlatformIO project
working-directory: ./mcu
shell: bash
run: pio run

- name: Get correct short commit SHA stored into env.short_sha
uses: ./.github/actions/get-correct-short-commit-sha

- name: publish as artifact
uses: actions/upload-artifact@v3
with:
name: PlatformIO-build_${{ env.short_sha }}
path: ./mcu/.pio/build/az-delivery-devkit-v4/firmware.bin
if-no-files-found: error
retention-days: 1
55 changes: 55 additions & 0 deletions .github/actions/ui-build/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: 'UI build'
description: 'UI build'
runs:
using: "composite"
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 7
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
working-directory: ./ui
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT

- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install dependencies
working-directory: ./ui
shell: bash
run: pnpm install

- name: Build
working-directory: ./ui
shell: bash
run: pnpm build

- name: Get correct short commit SHA stored into env.short_sha
uses: ./.github/actions/get-correct-short-commit-sha

- name: publish as artifact
uses: actions/upload-artifact@v3
with:
name: UI-build_${{ env.short_sha }}
path: ./ui/dist/
if-no-files-found: error
retention-days: 1
44 changes: 44 additions & 0 deletions .github/actions/ui-lint/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: 'UI lint'
description: 'UI lint'
runs:
using: "composite"
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 7
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
working-directory: ./ui
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT

- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install dependencies
working-directory: ./ui
shell: bash
run: pnpm install

- name: Lint
working-directory: ./ui
shell: bash
run: pnpm lint
56 changes: 56 additions & 0 deletions .github/actions/update-tool-build/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: 'Update Tool build'
description: 'Update Tool build'
runs:
using: "composite"
steps:
- name: Checkout Code
uses: actions/checkout@v3

# - name: print g++ version
# shell: bash
# if: startsWith(matrix.os,'ubuntu') || startsWith(runner.os,'ubuntu') || startsWith(matrix.os,'Windows') || startsWith(runner.os,'Windows')
# run: |
# if [ '$runner_os' == 'Linux' || '$matrix_os' == 'Linux' || '$runner_os' == 'Windows' || '$matrix_os' == 'Windows' ]; then
# gcc --version
# elif [ '$runner_os' == 'macOS' || '$matrix_os' == 'macOS' ]; then
# brew info gcc
# fi

- name: Set up GCC for Linux
if: startsWith(matrix.os,'ubuntu') || startsWith(runner.os,'ubuntu')
uses: egor-tensin/setup-gcc@v1
with:
version: latest
platform: x64

# - name: Set up MinGW for Windows
# if: startsWith(${{ matrix.os }},'Windows') || startsWith(${{ runner.os }},'Windows')
# uses: egor-tensin/setup-mingw@v2
# with:
# platform: x64

# - name: Set up GCC for MacOS
# if: startsWith(${{ matrix.os }},'macOS') || startsWith(${{ runner.os }},'macOS')
# shell: bash
# run: |
# export HOMEBREW_NO_ANALYTICS=1
# brew update
# brew upgrade
# brew info gcc
# brew install gcc
# brew cleanup

- name: g++ build
shell: bash
working-directory: update-package-tool
run: |
mkdir build
g++ -std=c++17 -g ./src/*.cpp -o build/tupt_for_${{ runner.os }}.exe

- name: publish TesLight Update Packaging Tool for ${{ runner.os }}
uses: actions/upload-artifact@v3
with:
name: TesLight_Update_Packaging_Tool_for_${{ runner.os }}
path: update-package-tool/build/tupt_for_${{ runner.os }}.exe
if-no-files-found: error
retention-days: 90
16 changes: 16 additions & 0 deletions .github/workflows/PlatformIO-Build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: PlatformIO Build
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
workflow_call:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: PlatformIO Build
uses: ./.github/actions/platformio-build
56 changes: 56 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
#################################
#################################
## Super Linter GitHub Actions ##
#################################
#################################
name: Lint Code Base

#
# Documentation:
# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
#

#############################
# Start the job on all push #
#############################
on:
push:
#branches-ignore: [master, main]
# Remove the line above to run when pushing to master
pull_request:
# branches: [master, main]

###############
# Set the Job #
###############
jobs:
build:
# Name the Job
name: Lint Code Base
# Set the agent to run on
runs-on: ubuntu-latest

##################
# Load all steps #
##################
steps:
##########################
# Checkout the code base #
##########################
- name: Checkout Code
uses: actions/checkout@v3
with:
# Full git history is needed to get a proper
# list of changed files within `super-linter`
fetch-depth: 0

################################
# Run Linter against code base #
################################
- name: Lint Code Base
uses: github/super-linter/slim@v4
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading