-
Notifications
You must be signed in to change notification settings - Fork 31
52 lines (40 loc) · 1.07 KB
/
ci.yml
File metadata and controls
52 lines (40 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: CI
on:
pull_request:
branches: [main, dev]
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
format:
name: Check Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install clang-format
run: pip install clang-format==22.1.3
- name: Run format check
run: bash tools/format.sh --check
commitlint:
name: Validate Commits
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm install --save-dev @commitlint/cli @commitlint/config-conventional
- run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }}
build:
name: Build Firmware
runs-on: ubuntu-latest
container:
image: espressif/idf:v5.5.1
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Build
run: bash tools/build.sh
shell: bash