Skip to content
This repository was archived by the owner on Jun 23, 2024. It is now read-only.

Move to CI based workflow #12

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
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
Original file line number Diff line number Diff line change
@@ -1,19 +1,32 @@
name: Compile Sketches
name: CI

on:
pull_request:
paths-ignore:
- "**"
- "!.github/workflows/compile-sketches.ya?ml"
- "!.github/workflows/ci.ya?ml"
- "!**.ino"

push:
paths-ignore:
- "**"
- "!.github/workflows/compile-sketches.ya?ml"
- "!.github/workflows/ci.ya?ml"
- "!**.ino"

jobs:
lint:
name: Lint
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Lint sketches
uses: arduino/arduino-lint-action@v1
with:
path: sketch

build:
name: Build
runs-on: ubuntu-latest
Expand All @@ -29,4 +42,4 @@ jobs:
fqbn: "arduino:avr:nano"
sketch-paths: sketch
github-token: ${{ secrets.GITHUB_TOKEN }}
enable-warnings-report: true
enable-warnings-report: true
23 changes: 0 additions & 23 deletions .github/workflows/lint.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/RyanLua/Arduino-Plant-Watering-Kit/tree/codespaces?quickstart=1)

[![Lint](https://github.com/RyanLua/Arduino-Plant-Watering-Kit/actions/workflows/lint.yml/badge.svg)](https://github.com/RyanLua/Arduino-Plant-Watering-Kit/actions/workflows/lint.yml) [![Codespaces Prebuilds](https://github.com/RyanLua/Arduino-Plant-Watering-Kit/actions/workflows/codespaces/create_codespaces_prebuilds/badge.svg)](https://github.com/RyanLua/Arduino-Plant-Watering-Kit/actions/workflows/codespaces/create_codespaces_prebuilds) [![Sync Labels](https://github.com/RyanLua/Arduino-Plant-Watering-Kit/actions/workflows/sync-labels.yml/badge.svg)](https://github.com/RyanLua/Arduino-Plant-Watering-Kit/actions/workflows/sync-labels.yml) [![Compile Sketches](https://github.com/RyanLua/Arduino-Plant-Watering-Kit/actions/workflows/compile-sketches.yml/badge.svg)](https://github.com/RyanLua/Arduino-Plant-Watering-Kit/actions/workflows/compile-sketches.yml)
[![CI](https://github.com/RyanLua/Arduino-Plant-Watering-Kit/actions/workflows/ci.yml/badge.svg)](https://github.com/RyanLua/Arduino-Plant-Watering-Kit/actions/workflows/ci.yml) [![Codespaces Prebuilds](https://github.com/RyanLua/Arduino-Plant-Watering-Kit/actions/workflows/codespaces/create_codespaces_prebuilds/badge.svg)](https://github.com/RyanLua/Arduino-Plant-Watering-Kit/actions/workflows/codespaces/create_codespaces_prebuilds) [![Sync Labels](https://github.com/RyanLua/Arduino-Plant-Watering-Kit/actions/workflows/sync-labels.yml/badge.svg)](https://github.com/RyanLua/Arduino-Plant-Watering-Kit/actions/workflows/sync-labels.yml)

> Build a smart garden setup with the Nano RP2040 Connect, a pump, and a moisture sensor.

Expand Down