Skip to content

Commit d57e172

Browse files
authored
Merge pull request #169 from arduino-libraries/ci
Update continuous integration system
2 parents 0c9b33c + e78329e commit d57e172

File tree

5 files changed

+51
-4
lines changed

5 files changed

+51
-4
lines changed

.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: 6 additions & 1 deletion
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
# Scheduled trigger checks for breakage caused by changes to external resources (libraries, platforms)
@@ -22,6 +24,7 @@ on:
2224

2325
jobs:
2426
build:
27+
name: ${{ matrix.board.fqbn }}
2528
runs-on: ubuntu-latest
2629

2730
env:
@@ -34,6 +37,7 @@ jobs:
3437
board:
3538
- fqbn: arduino:samd:mkrwifi1010
3639
- fqbn: arduino:samd:mkrvidor4000
40+
- fqbn: arduino:samd:nano_33_iot
3741
- fqbn: arduino:megaavr:uno2018:mode=on
3842
- fqbn: arduino:mbed_nano:nanorp2040connect
3943

@@ -42,7 +46,7 @@ jobs:
4246
uses: actions/checkout@v2
4347

4448
- name: Compile examples
45-
uses: arduino/compile-sketches@main
49+
uses: arduino/compile-sketches@v1
4650
with:
4751
github-token: ${{ secrets.GITHUB_TOKEN }}
4852
fqbn: ${{ matrix.board.fqbn }}
@@ -59,5 +63,6 @@ jobs:
5963
- name: Save memory usage change report as artifact
6064
uses: actions/upload-artifact@v2
6165
with:
66+
if-no-files-found: error
6267
name: ${{ env.SKETCHES_REPORTS_PATH }}
6368
path: ${{ env.SKETCHES_REPORTS_PATH }}

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Report Size Deltas
22

33
on:
4+
push:
5+
paths:
6+
- ".github/workflows/report-size-deltas.yml"
47
schedule:
58
- cron: '*/5 * * * *'
69
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#workflow_dispatch
@@ -15,7 +18,7 @@ jobs:
1518
steps:
1619
# See: https://github.com/arduino/actions/blob/master/libraries/report-size-deltas/README.md
1720
- name: Comment size deltas reports to PRs
18-
uses: arduino/report-size-deltas@main
21+
uses: arduino/report-size-deltas@v1
1922
with:
2023
# The name of the workflow artifact created by the "Compile Examples" workflow
2124
sketches-reports-source: sketches-reports

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 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
Enables network connection (local and Internet) with the Arduino MKR WiFi 1010, Arduino MKR VIDOR 4000 and Arduino UNO WiFi Rev.2.
1112

0 commit comments

Comments
 (0)