Fix indentation
This commit is contained in:
167
.github/workflows/validate_esphome_beta.yml
vendored
167
.github/workflows/validate_esphome_beta.yml
vendored
@@ -1,101 +1,100 @@
|
|||||||
---
|
---
|
||||||
name: Validate ESPHome (Beta)
|
name: Validate ESPHome (Beta)
|
||||||
|
|
||||||
# yamllint disable-line rule:truthy
|
# yamllint disable-line rule:truthy
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
setup_dependencies:
|
setup_dependencies:
|
||||||
name: Setup & Cache Dependencies
|
name: Setup & Cache Dependencies
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
cache-hit-arduino: ${{ steps.cache-arduino.outputs.cache-hit }}
|
cache-hit-arduino: ${{ steps.cache-arduino.outputs.cache-hit }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@main
|
uses: actions/checkout@main
|
||||||
|
|
||||||
- name: Cache Arduino Dependencies
|
- name: Cache Arduino Dependencies
|
||||||
id: cache-arduino
|
id: cache-arduino
|
||||||
uses: actions/cache@main
|
uses: actions/cache@main
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.esphome/cache
|
~/.esphome/cache
|
||||||
~/.platformio/packages
|
~/.platformio/packages
|
||||||
~/.platformio/platforms
|
~/.platformio/platforms
|
||||||
key: ${{ runner.os }}-arduino-${{ hashFiles('**/esphome_ard_basic.yaml') }}
|
key: ${{ runner.os }}-arduino-${{ hashFiles('**/esphome_ard_basic.yaml') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-arduino-
|
${{ runner.os }}-arduino-
|
||||||
|
|
||||||
code_scan:
|
code_scan:
|
||||||
name: Code scan (YAML)
|
name: Code scan (YAML)
|
||||||
runs-on: "ubuntu-latest"
|
runs-on: "ubuntu-latest"
|
||||||
needs: setup_dependencies
|
needs: setup_dependencies
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@main
|
uses: actions/checkout@main
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@main
|
uses: actions/setup-python@main
|
||||||
with:
|
with:
|
||||||
python-version: '3.8'
|
python-version: '3.8'
|
||||||
|
|
||||||
- name: Install Yamllint
|
- name: Install Yamllint
|
||||||
run: pip install yamllint
|
run: pip install yamllint
|
||||||
|
|
||||||
- name: Validate YAML files
|
- name: Validate YAML files
|
||||||
run: find . -name "*.yaml" -exec yamllint -c ./.rules/yamllint.yml {} +
|
run: find . -name "*.yaml" -exec yamllint -c ./.rules/yamllint.yml {} +
|
||||||
|
|
||||||
build_basic:
|
build_basic:
|
||||||
name: Basic
|
name: Basic
|
||||||
needs: [code_scan, setup_dependencies]
|
needs: [code_scan, setup_dependencies]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- id: ard
|
- id: ard
|
||||||
yaml_file: ".test/esphome_ard_basic.yaml"
|
yaml_file: ".test/esphome_ard_basic.yaml"
|
||||||
cache-hit: ${{ needs.setup_dependencies.outputs.cache-hit-arduino }}
|
cache-hit: ${{ needs.setup_dependencies.outputs.cache-hit-arduino }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@main
|
uses: actions/checkout@main
|
||||||
|
|
||||||
- name: Firmware
|
- name: Firmware
|
||||||
if: steps.matrix.outputs.cache-hit != 'true'
|
if: steps.matrix.outputs.cache-hit != 'true'
|
||||||
uses: barndawgie/build-action@v1.9.0
|
uses: barndawgie/build-action@v1.9.0
|
||||||
with:
|
with:
|
||||||
yaml_file: ${{ matrix.yaml_file }}
|
yaml_file: ${{ matrix.yaml_file }}
|
||||||
version: beta
|
version: beta
|
||||||
|
|
||||||
build_bluetooth_proxy:
|
build_bluetooth_proxy:
|
||||||
name: Bluetooth Proxy
|
name: Bluetooth Proxy
|
||||||
needs: build_basic
|
needs: build_basic
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- id: idf_v4
|
- id: idf_v4
|
||||||
base: idf_v4
|
base: idf_v4
|
||||||
yaml_file: ".test/esphome_idf_bluetooth_proxy.yaml"
|
yaml_file: ".test/esphome_idf_bluetooth_proxy.yaml"
|
||||||
- id: idf_v5
|
- id: idf_v5
|
||||||
base: idf_v5
|
base: idf_v5
|
||||||
yaml_file: ".test/esphome_idf5_bluetooth_proxy.yaml"
|
yaml_file: ".test/esphome_idf5_bluetooth_proxy.yaml"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@main
|
uses: actions/checkout@main
|
||||||
|
|
||||||
- name: Build Bluetooth Proxy Firmware
|
- name: Build Bluetooth Proxy Firmware
|
||||||
uses: barndawgie/build-action@v1.9.0
|
uses: barndawgie/build-action@v1.9.0
|
||||||
with:
|
with:
|
||||||
yaml_file: ${{ matrix.yaml_file }}
|
yaml_file: ${{ matrix.yaml_file }}
|
||||||
version: beta
|
version: beta
|
||||||
...
|
...
|
||||||
|
|
||||||
Reference in New Issue
Block a user