Skip to content

Commit

Permalink
Add CI by spell check and compiling it (#1)
Browse files Browse the repository at this point in the history
* Create buildproject.yml

add CI by building it

* add spell check CI

* Update fromV08.ino.cpp

spellcheck fix
  • Loading branch information
designer2k2 authored Jan 24, 2024
1 parent fc17843 commit 0169fdf
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/buildproject.yml
Original file line number Diff line number Diff line change
@@ -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
19 changes: 19 additions & 0 deletions .github/workflows/spell_check.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion src/fromV08.ino.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 0169fdf

Please sign in to comment.