Skip to content

Commit 9881255

Browse files
committed
Run examples as part of the build
1 parent 55afa55 commit 9881255

File tree

1 file changed

+31
-2
lines changed

1 file changed

+31
-2
lines changed

.github/workflows/check.yaml

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,40 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
os: [ubuntu-20.04]
11+
os: [ubuntu-20.04, ubuntu-22.04]
1212
steps:
1313
-
1414
name: Checkout
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v3
1616
-
1717
name: Tests
1818
run: make
19+
20+
examples:
21+
runs-on: ${{ matrix.os }}
22+
strategy:
23+
fail-fast: false
24+
matrix:
25+
os: [ubuntu-20.04, ubuntu-22.04]
26+
example: [mock-injection, wiring-blink]
27+
steps:
28+
-
29+
name: Checkout
30+
uses: actions/checkout@v3
31+
-
32+
uses: actions/cache@v3
33+
with:
34+
path: |
35+
~/.cache/pip
36+
~/.platformio/.cache
37+
key: ${{ runner.os }}-pio
38+
-
39+
uses: actions/setup-python@v4
40+
with:
41+
python-version: '3.9'
42+
-
43+
name: Install PlatformIO Core
44+
run: pip install --upgrade platformio
45+
-
46+
name: Tests
47+
run: pio test -d examples/wiring-blink/

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy