Skip to content

Commit

Permalink
chore: split github actions in two files to have separated badges
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Hirschenberger committed Jun 17, 2024
1 parent 33e2ef7 commit a17f833
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 31 deletions.
Original file line number Diff line number Diff line change
@@ -1,36 +1,8 @@
name: CI Workflows
name: Build Arduino Examples

on: [push, pull_request]

jobs:
Run-Source-Code-Linters:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18' # Specify the Node.js version you need

- name: Install Clang-Format via npm
run: npm install -g clang-format

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.12'

- name: Install pre-commit
run: |
python -m pip install --upgrade pip
pip install pre-commit
- name: Run pre-commit hooks
run: pre-commit run --all-files

Build-Arduino-Examples:
runs-on: ubuntu-latest

Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/lintCode.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Lint source code

on: [push, pull_request]

jobs:
Run-Source-Code-Linters:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18' # Specify the Node.js version you need

- name: Install Clang-Format via npm
run: npm install -g clang-format

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.12'

- name: Install pre-commit
run: |
python -m pip install --upgrade pip
pip install pre-commit
- name: Run pre-commit hooks
run: pre-commit run --all-files
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
</p>

[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
[![Lint source code](https://github.com/Flashmueller/PKP2600SI-Arduino-CAN-Controller/actions/workflows/lintSourceCode.yml/badge.svg)](https://github.com/Flashmueller/PKP2600SI-Arduino-CAN-Controller/actions/workflows/lintSourceCode.yml)
[![Build Arduino examples](https://github.com/Flashmueller/PKP2600SI-Arduino-CAN-Controller/actions/workflows/buildExamples.yml/badge.svg)](https://github.com/Flashmueller/PKP2600SI-Arduino-CAN-Controller/actions/workflows/buildExamples.yml)
[![Lint source code](https://github.com/Flashmueller/ArduinoBlinkMarinePkpCanOpen/actions/workflows/lintCode.yml/badge.svg?branch=main)](https://github.com/Flashmueller/ArduinoBlinkMarinePkpCanOpen/actions/workflows/lintCode.yml)
[![Build Arduino Examples](https://github.com/Flashmueller/ArduinoBlinkMarinePkpCanOpen/actions/workflows/buildExamples.yml/badge.svg?branch=main)](https://github.com/Flashmueller/ArduinoBlinkMarinePkpCanOpen/actions/workflows/buildExamples.yml)
</br>
This library enables control of a PKP-3500-SI-MT CAN Keypad using any CAN bus interface with an Arduino-compatible microcontroller. This project is a fork of [PKP2600SI-Arduino-CAN-Controller](https://github.com/Mbmatthews/PKP2600SI-Arduino-CAN-Controller), created to extend support to the PKP-3500-SI-MT model. Due to inconsistencies in the interface and varying hardware requirements, the library has been rewritten to be hardware-independent with minimal dependencies.

Expand Down

0 comments on commit a17f833

Please sign in to comment.