Skip to content

Commit 83ccb32

Browse files
committed
Add "smoke test" examples compilation CI workflow
On every push or pull request that affects library source or example files, compile all example sketches for the specified boards.
1 parent 395d147 commit 83ccb32

File tree

3 files changed

+57
-51
lines changed

3 files changed

+57
-51
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Compile Examples
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- ".github/workflows/compile-examples.yml"
7+
- "examples/**"
8+
- "src/**"
9+
push:
10+
paths:
11+
- ".github/workflows/compile-examples.yml"
12+
- "examples/**"
13+
- "src/**"
14+
# Scheduled trigger checks for breakage caused by changes to external resources (libraries, platforms)
15+
schedule:
16+
# run every Saturday at 3 AM UTC
17+
- cron: "0 3 * * 6"
18+
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#workflow_dispatch
19+
workflow_dispatch:
20+
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#repository_dispatch
21+
repository_dispatch:
22+
23+
jobs:
24+
build:
25+
runs-on: ubuntu-latest
26+
27+
strategy:
28+
fail-fast: false
29+
30+
matrix:
31+
board:
32+
- fqbn: arduino:samd:mkrwifi1010
33+
- fqbn: arduino:samd:mkrvidor4000
34+
- fqbn: arduino:megaavr:uno2018:mode=on
35+
36+
steps:
37+
- name: Checkout
38+
uses: actions/checkout@v2
39+
40+
- name: Compile examples
41+
uses: arduino/compile-sketches@main
42+
with:
43+
fqbn: ${{ matrix.board.fqbn }}
44+
libraries: |
45+
# Install the library from the local path.
46+
- source-path: ./
47+
# Install library dependencies.
48+
- name: VidorPeripherals
49+
sketch-paths: |
50+
- ./examples/

.travis.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

README.adoc

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1-
= WiFiNINA Library for Arduino =
1+
// Define the repository information in these attributes
2+
:repository-owner: arduino-libraries
3+
:repository-name: WiFiNINA
4+
25
= {repository-name} library for Arduino =
36

4-
image:https://travis-ci.org/arduino-libraries/WiFiNINA.svg?branch=master["Build Status", link="https://travis-ci.org/arduino-libraries/WiFiNINA"]
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"]
59

610
Enables network connection (local and Internet) with the Arduino MKR WiFi 1010, Arduino MKR VIDOR 4000 and Arduino UNO WiFi Rev.2.
711

812
With this library you can instantiate Servers, Clients and send/receive UDP packets through WiFi. The board can connect either to open or encrypted networks (WEP, WPA). The IP address can be assigned statically or through a DHCP. The library can also manage DNS.
913

1014
For more information about this library please visit us at
11-
http://www.arduino.cc/en/Reference/WiFiNINA
15+
https://www.arduino.cc/en/Reference/{repository-name}
1216

1317
== License ==
1418

0 commit comments

Comments
 (0)