Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 10
commit-message:
prefix: "ci"
include: "scope"
labels:
- "dependencies"
133 changes: 0 additions & 133 deletions .github/scripts/install-platformio.sh

This file was deleted.

20 changes: 0 additions & 20 deletions .github/scripts/on-push.sh

This file was deleted.

31 changes: 0 additions & 31 deletions .github/stale.yml

This file was deleted.

52 changes: 52 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
name: CI

on:
push:
branches: [master]
pull_request:
workflow_dispatch:

permissions:
contents: read

jobs:
platformio:
name: PlatformIO Build (${{ matrix.name }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: ESP8266
board: esp12e
example: examples/FullyFeatured-ESP8266
- name: ESP32
board: esp32dev
example: examples/FullyFeatured-ESP32
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.12"

- name: Cache PlatformIO
uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: ~/.platformio
key: pio-${{ runner.os }}-${{ matrix.name }}-${{ hashFiles('library.json', '.github/workflows/ci.yml') }}
restore-keys: |
pio-${{ runner.os }}-${{ matrix.name }}-
pio-${{ runner.os }}-

- name: Install PlatformIO
run: pip install platformio

- name: Validate PlatformIO package metadata
run: pio package pack --output /tmp

- name: Build ${{ matrix.name }} example
run: python -m platformio ci -l . --board ${{ matrix.board }} ${{ matrix.example }}
31 changes: 31 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Publish

on:
release:
types: [published]

permissions:
contents: read

jobs:
publish-platformio:
name: Publish to PlatformIO
runs-on: ubuntu-latest
environment: platformio
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: "3.x"

- name: Install PlatformIO
run: pip install --upgrade platformio

- name: Publish package
env:
PLATFORMIO_AUTH_TOKEN: ${{ secrets.PLATFORMIO_AUTH_TOKEN }}
run: pio package publish --owner esphome --non-interactive
30 changes: 0 additions & 30 deletions .github/workflows/push.yml

This file was deleted.