Skip to content

Commit 1ca6603

Browse files
author
Stefan Hirschenberger
committed
chore: split github actions in two files to have separated badges
1 parent 33e2ef7 commit 1ca6603

File tree

2 files changed

+33
-29
lines changed

2 files changed

+33
-29
lines changed

.github/workflows/ciWorkflows.yml .github/workflows/buildExamples.yml

+1-29
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,8 @@
1-
name: CI Workflows
1+
name: Build Arduino Examples
22

33
on: [push, pull_request]
44

55
jobs:
6-
Run-Source-Code-Linters:
7-
runs-on: ubuntu-latest
8-
9-
steps:
10-
- name: Checkout repository
11-
uses: actions/checkout@v2
12-
13-
- name: Set up Node.js
14-
uses: actions/setup-node@v2
15-
with:
16-
node-version: '18' # Specify the Node.js version you need
17-
18-
- name: Install Clang-Format via npm
19-
run: npm install -g clang-format
20-
21-
- name: Set up Python
22-
uses: actions/setup-python@v2
23-
with:
24-
python-version: '3.12'
25-
26-
- name: Install pre-commit
27-
run: |
28-
python -m pip install --upgrade pip
29-
pip install pre-commit
30-
31-
- name: Run pre-commit hooks
32-
run: pre-commit run --all-files
33-
346
Build-Arduino-Examples:
357
runs-on: ubuntu-latest
368

.github/workflows/lintCode.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Lint source code
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
Run-Source-Code-Linters:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout repository
11+
uses: actions/checkout@v2
12+
13+
- name: Set up Node.js
14+
uses: actions/setup-node@v2
15+
with:
16+
node-version: '18' # Specify the Node.js version you need
17+
18+
- name: Install Clang-Format via npm
19+
run: npm install -g clang-format
20+
21+
- name: Set up Python
22+
uses: actions/setup-python@v2
23+
with:
24+
python-version: '3.12'
25+
26+
- name: Install pre-commit
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install pre-commit
30+
31+
- name: Run pre-commit hooks
32+
run: pre-commit run --all-files

0 commit comments

Comments
 (0)