Skip to content

Commit

Permalink
Separate out CI
Browse files Browse the repository at this point in the history
  • Loading branch information
psmgeelen committed Dec 29, 2023
1 parent e2f62b6 commit 7761f46
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PlatformIO CI
name: PlatformIO CI - Build for Arduino

on: [push]

Expand All @@ -20,10 +20,6 @@ jobs:
- name: Install PlatformIO Core
run: pip install --upgrade platformio

- name: Run tests on the native platform
working-directory: ./controller/tea_poor
run: pio test -e native

- name: Build PlatformIO Project for Arduino
working-directory: ./controller/tea_poor
run: pio run -e uno_r4_wifi
25 changes: 25 additions & 0 deletions .github/workflows/platformio_tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: PlatformIO CI - Unit Tests

on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install PlatformIO Core
run: pip install --upgrade platformio

- name: Run tests on the native platform
working-directory: ./controller/tea_poor
run: pio test -e native

0 comments on commit 7761f46

Please sign in to comment.