Skip to content

Commit 1e1c231

Browse files
authored
Merge pull request #57 from arduino-libraries/ci
Update continuous integration system
2 parents e6be25f + ec08cae commit 1e1c231

8 files changed

+55
-10
lines changed

Diff for: .codespellrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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 = ,
5+
check-filenames =
6+
check-hidden =
7+
skip = ./.git,./src/libmodbus

Diff for: .github/dependabot.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# See: https://docs.github.com/en/github/administering-a-repository/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/github/administering-a-repository/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

Diff for: .github/workflows/check-arduino.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Check Arduino
2+
3+
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
4+
on:
5+
push:
6+
pull_request:
7+
schedule:
8+
# Run every Tuesday at 8 AM UTC to catch breakage caused by new rules added to Arduino Lint.
9+
- cron: "0 8 * * TUE"
10+
workflow_dispatch:
11+
repository_dispatch:
12+
13+
jobs:
14+
lint:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v2
20+
21+
- name: Arduino Lint
22+
uses: arduino/arduino-lint-action@v1
23+
with:
24+
compliance: specification
25+
library-manager: update
26+
# Always use this setting for official repositories. Remove for 3rd party projects.
27+
official: true
28+
project-type: library

Diff for: .github/workflows/compile-examples.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ on:
44
pull_request:
55
paths:
66
- ".github/workflows/compile-examples.yml"
7+
- "library.properties"
78
- "examples/**"
89
- "src/**"
910
push:
1011
paths:
1112
- ".github/workflows/compile-examples.yml"
13+
- "library.properties"
1214
- "examples/**"
1315
- "src/**"
1416
schedule:
@@ -92,7 +94,7 @@ jobs:
9294
uses: actions/checkout@v2
9395

9496
- name: Compile examples
95-
uses: arduino/compile-sketches@main
97+
uses: arduino/compile-sketches@v1
9698
with:
9799
github-token: ${{ secrets.GITHUB_TOKEN }}
98100
fqbn: ${{ matrix.board.fqbn }}
@@ -110,5 +112,6 @@ jobs:
110112
- name: Save memory usage change report as artifact
111113
uses: actions/upload-artifact@v2
112114
with:
115+
if-no-files-found: error
113116
name: ${{ env.SKETCHES_REPORTS_PATH }}
114117
path: ${{ env.SKETCHES_REPORTS_PATH }}

Diff for: .github/workflows/report-size-deltas.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
steps:
1414
- name: Comment size deltas reports to PRs
15-
uses: arduino/report-size-deltas@main
15+
uses: arduino/report-size-deltas@v1
1616
with:
1717
# The name of the workflow artifact created by the "Compile Examples" workflow
1818
sketches-reports-source: sketches-reports

Diff for: .github/workflows/spell-check.yml

+2-6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
schedule:
77
# run every Tuesday at 3 AM UTC
88
- cron: "0 3 * * 2"
9+
workflow_dispatch:
10+
repository_dispatch:
911

1012
jobs:
1113
spellcheck:
@@ -18,9 +20,3 @@ jobs:
1820
# See: https://github.com/codespell-project/actions-codespell/blob/master/README.md
1921
- name: Spell check
2022
uses: codespell-project/actions-codespell@master
21-
with:
22-
check_filenames: true
23-
check_hidden: true
24-
# In the event of a false positive, add the word in all lower case to this file:
25-
ignore_words_file: extras/codespell-ignore-words-list.txt
26-
skip: ./.git,./src/libmodbus

Diff for: README.adoc

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44

55
= Modbus Library for Arduino =
66

7-
image:https://github.com/{repository-owner}/{repository-name}/workflows/Compile%20Examples/badge.svg["Compile Examples Status", link="https://github.com/{repository-owner}/{repository-name}/actions?workflow=Compile+Examples"]
8-
image:https://github.com/{repository-owner}/{repository-name}/workflows/Spell%20Check/badge.svg["Spell Check Status", link="https://github.com/{repository-owner}/{repository-name}/actions?workflow=Spell+Check"]
7+
image:https://github.com/{repository-owner}/{repository-name}/actions/workflows/check-arduino.yml/badge.svg["Check Arduino status", link="https://github.com/{repository-owner}/{repository-name}/actions/workflows/check-arduino.yml"]
8+
image:https://github.com/{repository-owner}/{repository-name}/actions/workflows/compile-examples.yml/badge.svg["Compile Examples status", link="https://github.com/{repository-owner}/{repository-name}/actions/workflows/compile-examples.yml"]
9+
image:https://github.com/{repository-owner}/{repository-name}/actions/workflows/spell-check.yml/badge.svg["Spell Check status", link="https://github.com/{repository-owner}/{repository-name}/actions/workflows/spell-check.yml"]
910

1011
Use http://www.modbus.org/[Modbus] with your Arduino.
1112

Diff for: extras/codespell-ignore-words-list.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)