Skip to content

Commit

Permalink
CI: Update GHA recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Jan 23, 2024
1 parent 7c1e46a commit f5eaaeb
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 7 deletions.
20 changes: 20 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:

# Check GitHub Actions
# Workflow files stored in the default location of `.github/workflows`
- directory: "/"
package-ecosystem: "github-actions"
schedule:
interval: "monthly"

# Python dependencies.
- directory: "/"
package-ecosystem: "pip"
schedule:
interval: "weekly"
16 changes: 9 additions & 7 deletions .github/workflows/platformio-ci.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: PlatformIO CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
branches: ~
push:
branches: [ main ]

jobs:
build:
Expand All @@ -13,24 +13,26 @@ jobs:

steps:
- name: Acquire sources
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Cache pip
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Cache PlatformIO
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.platformio
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}

- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Install PlatformIO
run: |
Expand Down

0 comments on commit f5eaaeb

Please sign in to comment.