Skip to content

Commit 218a509

Browse files
authored
Merge pull request #4 from arduino-libraries/ci
[CI] Add more workflows
2 parents 7fd70af + 58e5585 commit 218a509

File tree

26 files changed

+370
-32
lines changed

26 files changed

+370
-32
lines changed

.codespellrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# See: https://github.com/codespell-project/codespell#using-a-config-file
2+
[codespell]
3+
# In the event of a false positive, add the problematic word, in all lowercase, to a comma-separated list here:
4+
ignore-words-list = compiletime,
5+
builtin = clear,informal,en-GB_to_en-US
6+
check-filenames =
7+
check-hidden =
8+
skip = ./.git,./go.mod,./go.sum,./package-lock.json,./poetry.lock,./yarn.lock,*.jdebug

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# See: https://docs.github.com/en/code-security/supply-chain-security/configuration-options-for-dependency-updates#about-the-dependabotyml-file
2+
version: 2
3+
4+
updates:
5+
# Configure check for outdated GitHub Actions actions in workflows.
6+
# See: https://docs.github.com/en/code-security/supply-chain-security/keeping-your-actions-up-to-date-with-dependabot
7+
- package-ecosystem: github-actions
8+
directory: / # Check the repository's workflows under /.github/workflows/
9+
schedule:
10+
interval: daily
11+
labels:
12+
- "topic: infrastructure"
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Source: https://github.com/arduino/.github/blob/master/workflow-templates/check-arduino.md
2+
name: Check Arduino
3+
4+
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
5+
on:
6+
push:
7+
pull_request:
8+
schedule:
9+
# Run every Tuesday at 8 AM UTC to catch breakage caused by new rules added to Arduino Lint.
10+
- cron: "0 8 * * TUE"
11+
workflow_dispatch:
12+
repository_dispatch:
13+
14+
jobs:
15+
lint:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v2
21+
22+
- name: Arduino Lint
23+
uses: arduino/arduino-lint-action@v1
24+
with:
25+
compliance: specification
26+
# TODO: This is only needed for standalone libraries.
27+
# Change this to "update" once the library is added to the index.
28+
library-manager: update
29+
# Always use this setting for official repositories. Remove for 3rd party projects.
30+
official: true
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Source: https://github.com/arduino/.github/blob/master/workflow-templates/report-size-deltas.md
2+
name: Report Size Deltas
3+
4+
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
5+
on:
6+
push:
7+
paths:
8+
- ".github/workflows/report-size-deltas.ya?ml"
9+
schedule:
10+
# Run at the minimum interval allowed by GitHub Actions.
11+
# Note: GitHub Actions periodically has outages which result in workflow failures.
12+
# In this event, the workflows will start passing again once the service recovers.
13+
- cron: "*/5 * * * *"
14+
workflow_dispatch:
15+
repository_dispatch:
16+
17+
jobs:
18+
report:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Comment size deltas reports to PRs
22+
uses: arduino/report-size-deltas@v1
23+
with:
24+
# The name of the workflow artifact created by the sketch compilation workflow
25+
sketches-reports-source: sketches-reports

.github/workflows/spell-check.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Source: https://github.com/arduino/.github/blob/master/workflow-templates/spell-check.md
2+
name: Spell Check
3+
4+
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows
5+
on:
6+
push:
7+
pull_request:
8+
schedule:
9+
# Run every Tuesday at 8 AM UTC to catch new misspelling detections resulting from dictionary updates.
10+
- cron: "0 8 * * TUE"
11+
workflow_dispatch:
12+
repository_dispatch:
13+
14+
jobs:
15+
spellcheck:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v2
21+
22+
- name: Spell check
23+
uses: codespell-project/actions-codespell@master

examples/Application/IrrigationSimple/AlarmTasks.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* In case of TR, TO and RO alarm types, the day of week, hour
1212
* and minute parameters are ignored.
1313
* In case of RO alarm type, the second parameters must bean UNIX
14-
* specied as UNIX timestamp (seconds since EPOCH).
14+
* specified as UNIX timestamp (seconds since EPOCH).
1515
*
1616
* See the TimeAlarms (https://github.com/PaulStoffregen/TimeAlarms)
1717
* docs for further specs.
@@ -80,4 +80,4 @@ std::list<AlarmTask> parseAlarmTab(File& file)
8080
}
8181

8282
return taskList;
83-
}
83+
}

examples/Application/IrrigationSimple/Helpers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ void setSystemClock(String compileDate, String compileTime)
1010
// ... ore use the one from integrated RTC.
1111
auto rtcTime = time(NULL);
1212

13-
// Remeber to connect at least the CR2032 battery
13+
// Remember to connect at least the CR2032 battery
1414
// to keep the RTC running.
1515
auto actualTime = rtcTime > buildTime ? rtcTime : buildTime;
1616

examples/Application/IrrigationSimple/IrrigationSimple.ino

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* - Arduino EdgeControl
66
* - MicroSD card
77
* - CR2032 Battery and/or 12V Lead Battery
8-
* - Button connectd to POWER_ON pin on the LCD breakout header
8+
* - Button connected to POWER_ON pin on the LCD breakout header
99
*
1010
* Usage:
1111
* - Define your callback functions in CustomTasks.{h,cpp}
@@ -76,7 +76,7 @@ void setup()
7676

7777
// Set System and Alarm clock
7878
// Use compile datetime as proxy clock synch
79-
// Use a CR2032 battery for persisten RTC.
79+
// Use a CR2032 battery for persistent RTC.
8080
setSystemClock();
8181

8282
// Init board-related objects
@@ -109,7 +109,7 @@ void setup()
109109
// AlarmTasks.{h, cpp} source files for documentation.
110110
loadAndSetTasks(alarmTabIDs);
111111

112-
// Use the a button for houskeeping stuff:
112+
// Use the a button for housekeeping stuff:
113113
// Single Tap: Show status
114114
// Double Tap: Reload alarm tasks from SD
115115
// Triple Tap: Force saving data to SD
@@ -175,4 +175,4 @@ void detectTaps()
175175
buttonStatus = static_cast<ButtonStatus>(taps);
176176
taps = 0;
177177
}
178-
}
178+
}

examples/Application/IrrigationSimpleLCD/AlarmTasks.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* In case of TR, TO and RO alarm types, the day of week, hour
1212
* and minute parameters are ignored.
1313
* In case of RO alarm type, the second parameters must bean UNIX
14-
* specied as UNIX timestamp (seconds since EPOCH).
14+
* specified as UNIX timestamp (seconds since EPOCH).
1515
*
1616
* See the TimeAlarms (https://github.com/PaulStoffregen/TimeAlarms)
1717
* docs for further specs.
@@ -80,4 +80,4 @@ std::list<AlarmTask> parseAlarmTab(File& file)
8080
}
8181

8282
return taskList;
83-
}
83+
}

examples/Application/IrrigationSimpleLCD/Helpers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ void setSystemClock(String compileDate, String compileTime)
1010
// ... ore use the one from integrated RTC.
1111
auto rtcTime = time(NULL);
1212

13-
// Remeber to connect at least the CR2032 battery
13+
// Remember to connect at least the CR2032 battery
1414
// to keep the RTC running.
1515
auto actualTime = rtcTime > buildTime ? rtcTime : buildTime;
1616

0 commit comments

Comments
 (0)