-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (58 loc) · 1.67 KB
/
ci.yml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Continuous integration
on:
push:
branches:
- dev
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Commit lint
uses: wagoid/commitlint-github-action@v6
- name: Cache PlatformIO packages
uses: actions/cache@v4
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version-file: '.python-version'
- name: Install PlatformIO Core
run: pip install --upgrade platformio
- name: Run cpp check
run: pio check
- name: Build unit tests
run: pio test
- name: Build code
run: pio run -e uno
analyze-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Semantic release verify
id: semantic
uses: cycjimmy/semantic-release-action@v4
with:
dry_run: true
branch: dev
extra_plugins: |
@semantic-release/commit-analyzer
@semantic-release/release-notes-generator
@semantic-release/changelog
@semantic-release/exec
@semantic-release/git
@semantic-release/github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Add to job summary
if: ${{ steps.semantic.outputs.new_release_version != '' }}
run: |
echo "${{ steps.semantic.outputs.new_release_version }} will be released" >> $GITHUB_STEP_SUMMARY