11name : Build
22
33on :
4- push :
4+ pull_request :
55 branches : [ master ]
66
77jobs :
@@ -10,32 +10,34 @@ jobs:
1010 runs-on : ubuntu-latest
1111 strategy :
1212 matrix :
13- example : [examples/ACUnit/ACUnit.ino , examples/AirQualitySensor/AirQualitySensor/AirQualitySensor.ino , examples/Blinds/Blinds.ino , examples/ContactSensor/ContactSensor.ino , examples/DimSwitch/DimSwitch.ino , examples/doorbell/doorbell.ino , examples/Fan/Fan.ino , examples/GarageDoor/GarageDoor.ino , examples/Light/Light/Light.ino , examples/Lock/Lock/Lock.ino , examples/Lock/Lock_with_feedback/Lock_with_feedback.ino , examples/MotionSensor/MotionSensor.ino , examples/PowerSensor/PowerSensor.ino , examples/Relay/MultiRelays_advance/MultiRelays_advance.ino , examples/Relay/Relay/Relay.ino , examples/Speaker/Speaker.ino , examples/Switch/MultiSwitch_advance/MultiSwitch_advance.ino , examples/Switch/MultiSwitch_beginner/MultiSwitch_beginner.ino , examples/Switch/MultiSwitch_intermediate/MultiSwitch_intermediate.ino , examples/Switch/Switch/Switch.ino , examples/Thermostat/Thermostat.ino , examples/TV/TV.ino ]
13+ example : [examples/ACUnit, examples/AirQualitySensor/AirQualitySensor, examples/Blinds, examples/ContactSensor, examples/DimSwitch, examples/doorbell, examples/Fan, examples/GarageDoor, examples/Light/Light, examples/Lock/Lock, examples/Lock/Lock_with_feedback, examples/MotionSensor, examples/PowerSensor, examples/Relay/MultiRelays_advance, examples/Relay/Relay, examples/Speaker, examples/Switch/MultiSwitch_advance, examples/Switch/MultiSwitch_beginner, examples/Switch/MultiSwitch_intermediate, examples/Switch/Switch, examples/Thermostat, examples/TV]
1414
1515 steps :
16- - uses : actions/checkout@v2
17- - name : Cache pip
16+
17+ - name : Step 1 - Checkout Repo
18+ uses : actions/checkout@v2
19+ - name : Step 2 - Cache pip
1820 uses : actions/cache@v2
1921 with :
2022 path : ~/.cache/pip
2123 key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
2224 restore-keys : ${{ runner.os }}-pip-
23- - name : Cache PlatformIO
25+ - name : Step 3 - Cache PlatformIO
2426 uses : actions/cache@v2
2527 with :
2628 path : ~/.platformio
2729 key : ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
28- - name : Set up Python
30+ - name : Step 4 - Set up Python
2931 uses : actions/setup-python@v2
30- - name : Install PlatformIO
32+ - name : Step 5 - Install PlatformIO
3133 run : |
3234 python -m pip install --upgrade pip
3335 pip install --upgrade platformio
34- - name : Install library dependencies
36+ - name : Step 6 - Install library dependencies
3537 run : |
3638 pio lib --global install "bblanchon/ArduinoJson"
3739 pio lib --global install "links2004/WebSockets"
38- - name : Run build test using PlatformIO
40+ - name : Step 7 - Run build test using PlatformIO
3941 run : pio ci --lib="." -b esp12e -b esp32dev
4042 env :
4143 PLATFORMIO_CI_SRC : ${{ matrix.example }}
0 commit comments