From 7b3bf2e34f8a8b5fcc1b900a1963434afd2924d8 Mon Sep 17 00:00:00 2001 From: Harm Berntsen Date: Wed, 4 Dec 2024 08:58:13 +0100 Subject: [PATCH] Add GitHub Actions --- .github/workflows/build-example.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/build-example.yml diff --git a/.github/workflows/build-example.yml b/.github/workflows/build-example.yml new file mode 100644 index 0000000..653671a --- /dev/null +++ b/.github/workflows/build-example.yml @@ -0,0 +1,22 @@ +name: Build example + +on: + workflow_dispatch: + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-build-example + cancel-in-progress: true + +jobs: + build-example: + runs-on: ubuntu-latest + timeout-minutes: 10 + container: + image: esphome/esphome:2024.11 + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Compile example + working-directory: esphome + run: compile example.yml