Skip to content

Commit 9f2a0e4

Browse files
authored
Merge pull request #309 from per1234/ci
Modernize continuous integration system
2 parents 21aeca0 + 717c4c9 commit 9f2a0e4

File tree

8 files changed

+60
-10
lines changed

8 files changed

+60
-10
lines changed

.codespellrc

Lines changed: 7 additions & 0 deletions
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/bsp,./src/bus_wrapper,./src/common,./src/driver,./src/socket,./src/spi_flash

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
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

.github/workflows/check-arduino.yml

Lines changed: 28 additions & 0 deletions
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

.github/workflows/compile-examples.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,15 @@ on:
1111
- ".github/workflows/compile-examples.yml"
1212
- "examples/**"
1313
- "src/**"
14+
schedule:
15+
# Run every Tuesday at 8 AM UTC to catch breakage caused by changes to external resources (libraries, platforms).
16+
- cron: "0 8 * * TUE"
17+
workflow_dispatch:
18+
repository_dispatch:
1419

1520
jobs:
1621
build:
22+
name: ${{ matrix.board.fqbn }}
1723
runs-on: ubuntu-latest
1824

1925
env:
@@ -72,7 +78,7 @@ jobs:
7278
uses: actions/checkout@v2
7379

7480
- name: Compile examples
75-
uses: arduino/compile-sketches@main
81+
uses: arduino/compile-sketches@v1
7682
with:
7783
github-token: ${{ secrets.GITHUB_TOKEN }}
7884
fqbn: ${{ matrix.board.fqbn }}

.github/workflows/report-size-deltas.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
name: Report Size Deltas
2+
13
on:
24
schedule:
35
- cron: '*/5 * * * *'
@@ -8,7 +10,7 @@ jobs:
810

911
steps:
1012
- name: Comment size deltas reports to PRs
11-
uses: arduino/report-size-deltas@main
13+
uses: arduino/report-size-deltas@v1
1214
with:
1315
# The name of the workflow artifact created by the "Compile Examples" workflow
1416
sketches-reports-source: sketches-reports

.github/workflows/spell-check.yml

Lines changed: 2 additions & 6 deletions
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/bsp,./src/bus_wrapper,./src/common,./src/driver,./src/socket,./src/spi_flash

README.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44

55
= {repository-name} library for for the Arduino WiFi Shield 101 and MKR1000 board =
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
This library implements a network driver for devices based
1112
on the ATMEL WINC1500 WiFi module.

extras/codespell-ignore-words-list.txt

Whitespace-only changes.

0 commit comments

Comments
 (0)