Skip to content

Commit

Permalink
Add workflow to test action
Browse files Browse the repository at this point in the history
  • Loading branch information
jesserockz committed Jun 20, 2024
1 parent 77e3617 commit 095cf18
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI

on:
push:
branches:
- main
workflow_dispatch:
pull_request:
schedule:
- cron: "0 5 * * 1"

jobs:
build:
name: Build test configuration for esphome:${{ matrix.esphome-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
esphome-version:
- stable
# - beta
# - dev
steps:
- name: Checkout
uses: actions/[email protected]
- name: Run action
uses: ./
id: esphome-build
with:
yaml_file: .github/workflows/test_files/test.yaml
version: ${{ matrix.esphome-version }}
platform: linux/amd64
cache: true
release_summary: "Test release summary"
release_url: "https://github.com/esphome/build-action"
- run: echo ${{ steps.esphome-build.outputs.version }} > ${{ steps.esphome-build.outputs.name }}/version
- name: Upload ESPHome binary
uses: actions/[email protected]
with:
name: build-output-files
path: ${{ steps.esphome-build.outputs.name }}

# verify: # TODO
5 changes: 5 additions & 0 deletions .github/workflows/test_files/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
esphome:
name: test

esp32:
board: esp32dev

0 comments on commit 095cf18

Please sign in to comment.