From 8046a145ed84538d3afafd8346d04117c5c5ca67 Mon Sep 17 00:00:00 2001 From: Alexander Entinger Date: Tue, 14 Feb 2023 13:18:47 +0100 Subject: [PATCH] Add CI workflow for checking this library for common problems. --- .github/workflows/arduino-lint.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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..75b0927 --- /dev/null +++ b/.github/workflows/arduino-lint.yml @@ -0,0 +1,26 @@ +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: + project-type: library + library-manager: submit