mirror of
https://github.com/brianhanifin/esphome-config.git
synced 2026-09-22 18:29:39 +00:00
migrate to fake secrets file for github build validation
This commit is contained in:
1 parent
236ca06615
commit
045298a87a
4 files changed
+21
-15
No files matched your search
+10
-10
@@ -4,27 +4,27 @@ name: build
|
|||||||
|
|
||||||
# yamllint disable-line rule:truthy
|
# yamllint disable-line rule:truthy
|
||||||
on:
|
on:
|
||||||
- push
|
push:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
esphome:
|
esphome:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: ⤵️ Check out configuration from GitHub
|
- name: ⤵️ Check out configuration from GitHub.
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v3.1.0
|
||||||
- name: Set up Python 3.7
|
- name: Set up Python.
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: 3.7
|
python-version: 3.7
|
||||||
- name: Install dependencies
|
- name: Install dependencies.
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip setuptools wheel
|
python -m pip install --upgrade pip setuptools wheel
|
||||||
pip install esphome
|
pip install esphome
|
||||||
pip list
|
pip list
|
||||||
esphome version
|
esphome version
|
||||||
- name: Copy secrets file into configuration folder
|
- name: Copy secrets file into configuration folder.
|
||||||
run: cp -R ./.stubs/* ./
|
run: cp ./secrets.fake.yaml ./secrets.yaml
|
||||||
- name: Run esphome on all files
|
- name: 🚀Run esphome on all files.
|
||||||
# yamllint disable rule:line-length
|
# yamllint disable rule:line-length
|
||||||
run: |
|
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:
|
wifi:
|
||||||
ssid: !secret wifi_ssid
|
ssid: !secret wifi_ssid
|
||||||
password: !secret wifi_password
|
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.
|
#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