-
Notifications
You must be signed in to change notification settings - Fork 4
53 lines (53 loc) · 1.76 KB
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: test
on:
push:
branches-ignore:
- master
paths-ignore:
- .git*
- '**.md'
- '*.properties'
pull_request:
branches:
- master
paths-ignore:
- .git*
- '**.md'
- '*.properties'
jobs:
test:
name: 'Test: ${{matrix.board.name}}'
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
board:
- vendor: arduino
arch: samd
name: arduino_zero_native
- vendor: adafruit
arch: samd
name: adafruit_trinket_m0
- vendor: teensy
arch: avr
name: teensy41
include:
- index: https://downloads.arduino.cc/packages/package_index.json
board:
vendor: arduino
- index: https://adafruit.github.io/arduino-board-index/package_adafruit_index.json
board:
vendor: adafruit
- index: https://www.pjrc.com/teensy/package_teensy_index.json
board:
vendor: teensy
steps:
- name: clone repository
uses: actions/checkout@v3
- name: install arduino and run test
uses: arduino/compile-sketches@v1
with:
fqbn: ${{matrix.board.vendor}}:${{matrix.board.arch}}:${{matrix.board.name}}
platforms: |-
- name: ${{matrix.board.vendor}}:${{matrix.board.arch}}
source-url: ${{matrix.index}}