Skip to content

Commit 0c6be74

Browse files
committed
Add GitHub Actions workflows for CI and Dependabot integration
1 parent b58f76f commit 0c6be74

File tree

4 files changed

+77
-0
lines changed

4 files changed

+77
-0
lines changed

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
version: 2
3+
updates:
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches:
7+
- master
8+
9+
jobs:
10+
platformio:
11+
name: PlatformIO
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
board: [esp32dev]
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Cache PlatformIO
21+
uses: actions/cache@v4
22+
with:
23+
key: ${{ runner.os }}-pio
24+
path: |
25+
~/.cache/pip
26+
~/.platformio
27+
28+
- name: Python
29+
uses: actions/setup-python@v5
30+
with:
31+
python-version: '3.x'
32+
33+
- name: Install PlatformIO
34+
run: |
35+
python -m pip install -U pip
36+
pip install -U platformio
37+
38+
- run: PLATFORMIO_SRC_DIR=examples/demo PIO_BOARD=${{ matrix.board }} pio run

.github/workflows/dependabot.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: PlatformIO Dependabot
2+
3+
on:
4+
workflow_dispatch: # option to manually trigger the workflow
5+
schedule:
6+
# Runs every day at 00:00
7+
- cron: '0 0 * * *'
8+
9+
jobs:
10+
dependabot:
11+
runs-on: ubuntu-latest
12+
name: run PlatformIO Dependabot
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
- name: run PlatformIO Dependabot
17+
uses: peterus/platformio_dependabot@v1
18+
with:
19+
github_token: ${{ secrets.GITHUB_TOKEN }}

platformio.ini

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[platformio]
2+
lib_dir = .
3+
4+
[env:esp32dev]
5+
platform = espressif32
6+
board = esp32dev
7+
framework = arduino
8+
lib_deps =
9+
mathieucarbou/AsyncTCP@^3.2.14
10+
mathieucarbou/ESPAsyncWebServer@^3.3.23
11+
build_flags =
12+
-D CONFIG_ASYNC_TCP_QUEUE_SIZE=512
13+
-D CONFIG_ASYNC_TCP_RUNNING_CORE=1

0 commit comments

Comments
 (0)