mirror of
https://github.com/brianhanifin/esphome-config.git
synced 2026-07-27 19:55:41 +00:00
migrate to fake secrets file for github build validation
This commit is contained in:
+10
-10
@@ -4,27 +4,27 @@ name: build
|
||||
|
||||
# yamllint disable-line rule:truthy
|
||||
on:
|
||||
- push
|
||||
push:
|
||||
|
||||
jobs:
|
||||
esphome:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: ⤵️ Check out configuration from GitHub
|
||||
uses: actions/checkout@v1
|
||||
- name: Set up Python 3.7
|
||||
uses: actions/setup-python@v1
|
||||
- name: ⤵️ Check out configuration from GitHub.
|
||||
uses: actions/checkout@v3.1.0
|
||||
- name: Set up Python.
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: 3.7
|
||||
- name: Install dependencies
|
||||
- name: Install dependencies.
|
||||
run: |
|
||||
python -m pip install --upgrade pip setuptools wheel
|
||||
pip install esphome
|
||||
pip list
|
||||
esphome version
|
||||
- name: Copy secrets file into configuration folder
|
||||
run: cp -R ./.stubs/* ./
|
||||
- name: Run esphome on all files
|
||||
- name: Copy secrets file into configuration folder.
|
||||
run: cp ./secrets.fake.yaml ./secrets.yaml
|
||||
- name: 🚀Run esphome on all files.
|
||||
# yamllint disable rule:line-length
|
||||
run: |
|
||||
for file in $(find ./ -type f -name "*.yaml" -not -name "secrets.yaml" -path "common"); do esphome "${file}" config; done
|
||||
for file in $(find ./config/esphome -type f -name "*.yaml" -maxdepth 1 -not -name "secrets.yaml"); do esphome "${file}" config; done
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
---
|
||||
wifi_ssid: ""
|
||||
wifi_password: ""
|
||||
failover_password: ""
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
wifi:
|
||||
ssid: !secret wifi_ssid
|
||||
password: !secret wifi_password
|
||||
use_address: $ip
|
||||
#use_address: $ip
|
||||
#reboot_timeout: 0s # Disable reboots for when Home Assistant is offline for an extended time.
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
---
|
||||
# Failover Access Point
|
||||
failover_password: "fakefailoverpassword"
|
||||
|
||||
# Your Wi-Fi SSID and password
|
||||
wifi_ssid: "fakewifissid"
|
||||
wifi_password: "fakewifipassword"
|
||||
|
||||
# API encryption key
|
||||
encryption_key: "fakeencryptionkey"
|
||||
Reference in New Issue
Block a user