diff --git a/.github/workflows/arduino-lint.yml b/.github/workflows/arduino-lint.yml new file mode 100644 index 0000000..677b774 --- /dev/null +++ b/.github/workflows/arduino-lint.yml @@ -0,0 +1,27 @@ +name: Arduino Lint +on: + push: + pull_request: + # Scheduled trigger checks for breakage caused by new rules added to Arduino Lint + schedule: + # run every Saturday at 3 AM UTC + - cron: "0 3 * * 6" + # See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#workflow_dispatch + workflow_dispatch: + # See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#repository_dispatch + repository_dispatch: + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Arduino Lint + uses: arduino/arduino-lint-action@v1 + with: + official: true + project-type: library + library-manager: update diff --git a/README.md b/README.md index 93dedf4..4720005 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ ============== [![Spell Check status](https://github.com/facchinm/USBHostMbed5/actions/workflows/spell-check.yml/badge.svg)](https://github.com/facchinm/USBHostMbed5/actions/workflows/spell-check.yml) [![Sync Labels status](https://github.com/facchinm/USBHostMbed5/actions/workflows/sync-labels.yml/badge.svg)](https://github.com/facchinm/USBHostMbed5/actions/workflows/sync-labels.yml) +[![Arduino Lint](https://github.com/facchinm/USBHostMbed5/workflows/Arduino%20Lint/badge.svg)](https://github.com/facchinm/USBHostMbed5/actions?workflow=Arduino+Lint) ARM Mbed5 USB Host library ported for [ArduinoCore-mbed](https://github.com/arduino/ArduinoCore-mbed) enabled boards.