Skip to content

Commit 26f2558

Browse files
authored
Merge pull request #478 from EnviroDIY/develop
Develop
2 parents eb03a69 + e1482bf commit 26f2558

File tree

183 files changed

+5253
-2805
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

183 files changed

+5253
-2805
lines changed

.actrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
--platform ubuntu-latest=ghcr.io/catthehacker/ubuntu:full-latest
2+
--pull=false
3+
--detect-event
4+
--env RUNNER_DEBUG=1 # Enable debug logging
5+
# --env NODE_DEBUG=<module> # Might be useful in few cases

.github/workflows/build_documentation.yaml

+47
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,53 @@ concurrency:
2828
cancel-in-progress: true
2929

3030
jobs:
31+
check_menu_inclusion:
32+
runs-on: ubuntu-latest
33+
if: ${{ ! contains(github.event.head_commit.message, 'ci skip') }}
34+
name: Check that all classes are documented in the menu-a-la-carte example
35+
36+
steps:
37+
- uses: actions/checkout@v4
38+
39+
- name: Set up Python
40+
uses: actions/setup-python@v5
41+
with:
42+
python-version: '3.x'
43+
44+
# Using answer from here to get the exit code and pass the output: https://stackoverflow.com/questions/59191913/how-do-i-get-the-output-of-a-specific-step-in-github-actions
45+
- name: check for classes in the menu example
46+
id: check_component
47+
continue-on-error: true
48+
run: |
49+
cd $GITHUB_WORKSPACE/continuous_integration
50+
python check_component_inclusion.py 2>&1 | tee check_component.log
51+
result_code=${PIPESTATUS[0]}
52+
missing_menu_docs=$(cat check_component.log)
53+
missing_menu_docs="${missing_menu_docs//'%'/'%25'}"
54+
missing_menu_docs="${missing_menu_docs//$'\n'/'%0A'}"
55+
missing_menu_docs="${missing_menu_docs//$'\r'/'%0D'}"
56+
echo "missing_menu_docs=missing_menu_docs" >> $GITHUB_OUTPUT
57+
if [[ $result_code ]]; then
58+
echo "$(cat check_component.log)" >> $GITHUB_STEP_SUMMARY
59+
else
60+
echo "Valid library.json =)" >> $GITHUB_STEP_SUMMARY
61+
fi
62+
echo "Finished menu inclusion verification"
63+
exit $result_code
64+
65+
- name: Create commit comment
66+
uses: peter-evans/commit-comment@v3
67+
if: steps.check_component.outcome=='failure'
68+
with:
69+
body: |
70+
All sensor and variable subclasses must be included in the Menu a la Carte example
71+
${{ steps.check_component.outputs.missing_menu_docs }}
72+
73+
- name: Fail if cannot find all menu flags
74+
id: verification_failure
75+
if: steps.check_component.outcome=='failure'
76+
run: exit 1
77+
3178
doc_build:
3279
if: ${{ (! contains(github.event.head_commit.message, 'ci skip')) && (github.event_name != 'workflow_run' || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success')) }}
3380
name: Build documentation

.github/workflows/changelog_reminder.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Changelog Reminder
1313
uses: peterjgrainger/[email protected]
1414
with:
15-
changelog_regex: '/CHANGELOG\/.*\/*.md'
15+
changelog_regex: '/CHANGELOG\/.*\/*.md/i'
1616
customPrMessage: 'Please add your changes to the change log!'
1717
env:
1818
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,9 @@ runDoxygen_archive.bat
106106
generateKeywords.bat
107107
update_path.bat
108108
pio_common_libdeps.ini
109+
ex_one_offs/*
110+
output_deep.txt
111+
output_deep+.txt
112+
envDump.txt
113+
-Q
114+
act.log

0 commit comments

Comments
 (0)