From 58381db9a1ec50e1ebaea603336d880580be01b5 Mon Sep 17 00:00:00 2001 From: Stephan Martin Date: Wed, 24 Jan 2024 21:30:46 +0100 Subject: [PATCH 1/3] Create buildproject.yml add CI by building it --- .github/workflows/buildproject.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/buildproject.yml diff --git a/.github/workflows/buildproject.yml b/.github/workflows/buildproject.yml new file mode 100644 index 0000000..df83677 --- /dev/null +++ b/.github/workflows/buildproject.yml @@ -0,0 +1,24 @@ +name: PlatformIO CI + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: actions/cache@v3 + with: + path: | + ~/.cache/pip + ~/.platformio/.cache + key: ${{ runner.os }}-pio + - uses: actions/setup-python@v4 + with: + python-version: '3.9' + - name: Install PlatformIO Core + run: pip install --upgrade platformio + + - name: Build PlatformIO Project + run: pio run From 15adaf54abdc789616016fab656bd783eb9f3dbb Mon Sep 17 00:00:00 2001 From: Stephan Martin Date: Wed, 24 Jan 2024 21:33:41 +0100 Subject: [PATCH 2/3] add spell check CI --- .github/workflows/spell_check.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/spell_check.yml diff --git a/.github/workflows/spell_check.yml b/.github/workflows/spell_check.yml new file mode 100644 index 0000000..b2d651b --- /dev/null +++ b/.github/workflows/spell_check.yml @@ -0,0 +1,19 @@ +name: Spell Check + +on: + pull_request: + push: + workflow_dispatch: + repository_dispatch: + +jobs: + spellcheck: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + # See: https://github.com/codespell-project/actions-codespell/blob/master/README.md + - name: Spell check + uses: codespell-project/actions-codespell@master \ No newline at end of file From 8743df9af955d41952166f9dc9eb3def760c1ce2 Mon Sep 17 00:00:00 2001 From: Stephan Martin Date: Wed, 24 Jan 2024 21:37:49 +0100 Subject: [PATCH 3/3] Update fromV08.ino.cpp spellcheck fix --- src/fromV08.ino.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fromV08.ino.cpp b/src/fromV08.ino.cpp index c80cabb..3929864 100644 --- a/src/fromV08.ino.cpp +++ b/src/fromV08.ino.cpp @@ -60,7 +60,7 @@ unsigned TX_INTERVAL = 15; unsigned long lastMillis = 0; unsigned long lastMillis2 = 0; -// For battery mesurement +// For battery measurement float VBAT; // battery voltage from ESP32 ADC read const lmic_pinmap lmic_pins = {