From 7a242ab7bb297595606b70a17e103821adf03f90 Mon Sep 17 00:00:00 2001 From: Sebastian Romero Date: Tue, 9 Apr 2024 18:18:49 +0200 Subject: [PATCH] Add linting workflow --- .github/workflows/arduino-lint.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/arduino-lint.yml diff --git a/.github/workflows/arduino-lint.yml b/.github/workflows/arduino-lint.yml new file mode 100644 index 0000000..e280129 --- /dev/null +++ b/.github/workflows/arduino-lint.yml @@ -0,0 +1,28 @@ +name: Arduino Lint + +# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows +on: + push: + pull_request: + schedule: + # Run every Tuesday at 8 AM UTC to catch breakage caused by new rules added to Arduino Lint. + - cron: "0 8 * * TUE" + workflow_dispatch: + repository_dispatch: + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Arduino Lint + uses: arduino/arduino-lint-action@v1 + with: + compliance: specification + library-manager: submit + # Always use this setting for official repositories. Remove for 3rd party projects. + official: true + project-type: library \ No newline at end of file