Skip to content

Commit

Permalink
Merge pull request #3 from jordojordo/build-tests
Browse files Browse the repository at this point in the history
Add scheduled build tests workflow
  • Loading branch information
jordojordo authored Feb 7, 2024
2 parents 9ca32f3 + 83d19fd commit 91344df
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 3 deletions.
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

0 comments on commit 91344df

Please sign in to comment.