Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add scheduled build tests workflow #3

Merged
merged 1 commit into from
Feb 7, 2024
Merged
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
6 changes: 3 additions & 3 deletions .github/workflows/compile-lawndon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ jobs:
- name: Install libraries
run: |
arduino-cli lib install IBusBM Servo

- name: Compile Lawndon
uses: arduino/compile-sketches@v1
with:
with:
fqbn: "arduino:avr:mega"
libraries: |
libraries: |
- name: IBusBM
- name: Servo
sketch-paths: |
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build Tests

on:
pull_request:
branches:
- main
schedule:
- cron: "0 6 * * 3"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Arduino cli
uses: arduino/setup-arduino-cli@v1

- name: Install libraries
run: |
arduino-cli lib install IBusBM Servo

- name: Lint project
uses: arduino/arduino-lint-action@v1
with:
path: ./lawndon
library-manager: update

- name: Compile Lawndon
uses: arduino/compile-sketches@v1
with:
fqbn: "arduino:avr:mega"
libraries: |
- name: IBusBM
- name: Servo
sketch-paths: |
- ./lawndon
enable-warnings-report: true
verbose: false
cli-compile-flags: |
- --export-binaries
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Build Tests](https://github.com/jordojordo/lawndon-lite/actions/workflows/tests.yml/badge.svg?event=schedule)](https://github.com/jordojordo/lawndon-lite/actions/workflows/tests.yml)

# Lawndon Lite

> Note: Lawndon is a WIP and the construction can be modified entirely to fit your desired needs.
Expand Down
Loading