Skip to content

Commit a96bcbe

Browse files
authored
Merge pull request #48 from arduino-libraries/ci
Update continuous integration system
2 parents 2a4924d + 72be849 commit a96bcbe

File tree

5 files changed

+47
-4
lines changed

5 files changed

+47
-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
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: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ on:
55
pull_request:
66
paths:
77
- .github/workflows/compile-examples.yml
8+
- library.properties
89
- examples/**
910
- src/**
1011
push:
1112
paths:
1213
- .github/workflows/compile-examples.yml
14+
- library.properties
1315
- examples/**
1416
- src/**
1517
schedule:
@@ -20,6 +22,7 @@ on:
2022

2123
jobs:
2224
build:
25+
name: ${{ matrix.board.fqbn }}
2326
runs-on: ubuntu-latest
2427

2528
env:
@@ -68,7 +71,7 @@ jobs:
6871
uses: actions/checkout@v2
6972

7073
- name: Compile examples
71-
uses: arduino/compile-sketches@main
74+
uses: arduino/compile-sketches@v1
7275
with:
7376
github-token: ${{ secrets.GITHUB_TOKEN }}
7477
fqbn: ${{ matrix.board.fqbn }}
@@ -86,5 +89,6 @@ jobs:
8689
if: github.event_name == 'pull_request'
8790
uses: actions/upload-artifact@v2
8891
with:
92+
if-no-files-found: error
8993
path: ${{ env.SKETCHES_REPORTS_PATH }}
9094
name: ${{ env.SKETCHES_REPORTS_PATH }}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
steps:
2121
- name: Comment size deltas reports to PRs
22-
uses: arduino/report-size-deltas@main
22+
uses: arduino/report-size-deltas@v1
2323
with:
2424
# The name of the workflow artifact created by the sketch compilation workflow
2525
sketches-reports-source: sketches-reports

README.adoc

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

44
= {repository-name} =
55

6-
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"]
7-
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"]
6+
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"]
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/spell-check.yml/badge.svg["Spell Check status", link="https://github.com/{repository-owner}/{repository-name}/actions/workflows/spell-check.yml"]
89

910
Port of https://bearssl.org[BearSSL] to Arduino.
1011

0 commit comments

Comments
 (0)