Skip to content

Commit da95307

Browse files
committed
add github action for testing
1 parent 5ded6c6 commit da95307

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

.github/workflows/arduino-checks.yml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# This is a basic workflow to help you get started with Actions for Arduino library projects
2+
3+
name: Arduino Library Checks
4+
5+
# Controls when the action will run.
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the develop branch
8+
push:
9+
branches: [master]
10+
pull_request:
11+
branches: [master]
12+
13+
# Allows you to run this workflow manually from the Actions tab
14+
workflow_dispatch:
15+
16+
jobs:
17+
18+
# This defines a job for checking the Arduino library format specifications
19+
# see <https://github.com/marketplace/actions/arduino-arduino-lint-action>
20+
lint:
21+
name: check library format
22+
runs-on: ubuntu-latest
23+
continue-on-error: true
24+
25+
steps:
26+
- uses: actions/checkout@v2
27+
28+
# Arduino - lint
29+
- name: Arduino-lint
30+
uses: arduino/arduino-lint-action@v1
31+
with:
32+
library-manager: update
33+
verbose: false
34+
35+
# These jobs are used to compile the examples fot the specific processor/board.
36+
# see <https://github.com/marketplace/actions/compile-arduino-sketches>
37+
compile-uno:
38+
name: compile uno examples
39+
runs-on: ubuntu-latest
40+
continue-on-error: true
41+
42+
steps:
43+
- uses: actions/checkout@v2
44+
45+
# Compile Examples for UNO
46+
- name: Compile examples on uno
47+
uses: arduino/compile-sketches@v1
48+
with:
49+
verbose: true
50+
fqbn: arduino:avr:uno
51+
sketch-paths: |
52+
- 'examples/LiquidCrystal_PCF8574_Test'
53+

0 commit comments

Comments
 (0)