Skip to content

Commit 80ff7fc

Browse files
committed
Replace cmake unit test action with platformio
1 parent 4335fd1 commit 80ff7fc

File tree

1 file changed

+28
-9
lines changed

1 file changed

+28
-9
lines changed

.github/workflows/check.yaml

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,38 @@ name: Check
33
on: [push, pull_request]
44

55
jobs:
6-
build:
6+
unit-tests:
77
runs-on: ${{ matrix.os }}
8+
89
strategy:
9-
fail-fast: false
1010
matrix:
11-
os: [ubuntu-22.04]
11+
os:
12+
- ubuntu-latest
13+
#- windows-latest
14+
pio_env:
15+
- native
16+
#- Win32
17+
# exclude:
18+
# - os: ubuntu-latest
19+
# pio_env: Win32
20+
# - os: windows-latest
21+
# pio_env: native
22+
1223
steps:
13-
-
14-
name: Checkout
15-
uses: actions/checkout@v3
16-
-
17-
name: Tests
18-
run: make
24+
- uses: actions/checkout@v4
25+
26+
- name: Set up Python
27+
uses: actions/setup-python@v5
28+
with:
29+
python-version: '3.11'
30+
31+
- name: Install PlatformIO
32+
run: |
33+
python -m pip install --upgrade pip
34+
pip install --upgrade platformio
35+
36+
- name: Run unit tests
37+
run: platformio test -v -e ${{ matrix.pio_env }}
1938

2039
examples:
2140
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)