diff --git a/.github/workflows/compile-lawndon.yml b/.github/workflows/compile-lawndon.yml index 002ac73..a2eae91 100644 --- a/.github/workflows/compile-lawndon.yml +++ b/.github/workflows/compile-lawndon.yml @@ -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: | diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..89a3d63 --- /dev/null +++ b/.github/workflows/tests.yml @@ -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 diff --git a/README.md b/README.md index 0e4fc0a..fd3a43d 100644 --- a/README.md +++ b/README.md @@ -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.