30 lines
733 B
YAML
30 lines
733 B
YAML
|
name: PlatformIO CI
|
||
|
|
||
|
on: [push]
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v1
|
||
|
- name: Set up Python
|
||
|
uses: actions/setup-python@v1
|
||
|
- name: Install dependencies
|
||
|
run: |
|
||
|
python -m pip install --upgrade pip
|
||
|
pip install platformio
|
||
|
- name: Run PlatformIO Build
|
||
|
run: platformio run --environment nrf52840_dk
|
||
|
|
||
|
test:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v1
|
||
|
- name: Set up Python
|
||
|
uses: actions/setup-python@v1
|
||
|
- name: Install dependencies
|
||
|
run: |
|
||
|
python -m pip install --upgrade pip
|
||
|
pip install platformio
|
||
|
- name: Run PlatformIO Tests
|
||
|
run: platformio test --environment desktop
|