Skip to content

Commit

Permalink
Add Github Build Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AzonInc committed Mar 26, 2024
1 parent 4e579fc commit 7368471
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/example-project-dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
packages:
common: !include shared-config.yaml

external_components:
- source: github://AzonInc/ESPHome-TCS-Intercom@dev
5 changes: 5 additions & 0 deletions .github/example-project-master.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
packages:
common: !include shared-config.yaml

external_components:
- source: github://AzonInc/ESPHome-TCS-Intercom@master
15 changes: 15 additions & 0 deletions .github/shared-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
esphome:
name: test-tcs

esp32:
board: "esp32dev"

wifi:
ssid: "My Network"
password: "My Password"

api:

tcs_intercom:
rx_pin: 22
tx_pin: 23
25 changes: 25 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build Component

on:
push:
pull_request:

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Compile for master
if: github.ref == 'refs/heads/master'
uses: esphome/build-action@v1
with:
yaml_file: .github/example-project-master.yaml

- name: Compile for dev
if: github.ref != 'refs/heads/master'
uses: esphome/build-action@v1
with:
yaml_file: .github/example-project-dev.yaml

0 comments on commit 7368471

Please sign in to comment.