This repository has been archived by the owner on May 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from per1234/arduino-lint
Update CI workflow for Arduino project-specific linting
- Loading branch information
Showing
4 changed files
with
64 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Check Arduino | ||
|
||
# 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@v2 | ||
|
||
- name: Arduino Lint | ||
uses: arduino/arduino-lint-action@v1 | ||
with: | ||
compliance: specification | ||
library-manager: update | ||
project-type: library |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Check keywords.txt | ||
|
||
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows | ||
on: | ||
push: | ||
paths: | ||
- ".github/workflows/check-keywords-txt.yml" | ||
- "keywords.txt" | ||
pull_request: | ||
paths: | ||
- ".github/workflows/check-keywords-txt.yml" | ||
- "keywords.txt" | ||
workflow_dispatch: | ||
repository_dispatch: | ||
|
||
jobs: | ||
extra-library-checks: | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
ARDUINO_CI_SCRIPT_FOLDER: extras/ci-tools/arduino-ci-script | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install arduino-ci-script | ||
uses: per1234/install-arduino-ci-script-action@main | ||
with: | ||
installation-path: ${{ env.ARDUINO_CI_SCRIPT_FOLDER }} | ||
|
||
# See: https://github.com/per1234/arduino-ci-script#check_keywords_txt-searchpath-maximumsearchdepth | ||
- name: Check keywords.txt | ||
run: | | ||
source "${ARDUINO_CI_SCRIPT_FOLDER}/arduino-ci-script.sh" | ||
check_keywords_txt "$GITHUB_WORKSPACE" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters