Skip to content
This repository has been archived by the owner on May 26, 2024. It is now read-only.

Update CI workflow for Arduino project-specific linting #23

Merged
merged 1 commit into from
Apr 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/check-arduino.yml
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
36 changes: 36 additions & 0 deletions .github/workflows/check-keywords-txt.yml
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"
81 changes: 0 additions & 81 deletions .github/workflows/extra-library-checks.yml

This file was deleted.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
=====================

[![Compile Examples](https://github.com/107-systems/107-Arduino-TMF8801/workflows/Compile%20Examples/badge.svg)](https://github.com/107-systems/107-Arduino-TMF8801/actions?workflow=Compile+Examples)
[![Extra Library Checks](https://github.com/107-systems/107-Arduino-TMF8801/workflows/Extra%20Library%20Checks/badge.svg)](https://github.com/107-systems/107-Arduino-TMF8801/actions?workflow=Extra+Library+Checks)
[![Check Arduino](https://github.com/107-systems/107-Arduino-TMF8801/actions/workflows/check-arduino.yml/badge.svg)](https://github.com/107-systems/107-Arduino-TMF8801/actions/workflows/check-arduino.yml)
[![Check keywords.txt](https://github.com/107-systems/107-Arduino-TMF8801/actions/workflows/check-keywords-txt.yml/badge.svg)](https://github.com/107-systems/107-Arduino-TMF8801/actions/workflows/check-keywords-txt.yml)
[![General Formatting Checks](https://github.com/107-systems/107-Arduino-TMF8801/workflows/General%20Formatting%20Checks/badge.svg)](https://github.com/107-systems/107-Arduino-TMF8801/actions?workflow=General+Formatting+Checks)
[![Spell Check](https://github.com/107-systems/107-Arduino-TMF8801/workflows/Spell%20Check/badge.svg)](https://github.com/107-systems/107-Arduino-TMF8801/actions?workflow=Spell+Check)

Expand Down