Skip to content

Commit 71dd2aa

Browse files
committed
[CI] Add Continuous Integration workflow
* astyle-check * compile-examples Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 17b81c4 commit 71dd2aa

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: STM32 Core Continuous Integration
2+
on: [push, pull_request]
3+
jobs:
4+
astyle_check:
5+
runs-on: ubuntu-latest
6+
name: AStyle check
7+
steps:
8+
# First of all, clone the repo using the checkout action.
9+
- name: Checkout
10+
uses: actions/checkout@master
11+
12+
- name: Astyle check
13+
id: Astyle
14+
uses: stm32duino/actions/astyle-check@master
15+
16+
# Use the output from the `Astyle` step
17+
- name: Astyle Errors
18+
if: failure()
19+
run: |
20+
cat ${{ steps.Astyle.outputs.astyle-result }}
21+
exit 1
22+
core_build:
23+
runs-on: ubuntu-latest
24+
name: Core compilation
25+
steps:
26+
# First of all, clone the repo using the checkout action.
27+
- name: Checkout
28+
uses: actions/checkout@master
29+
30+
- name: Compilation
31+
id: Compile
32+
uses: stm32duino/actions/compile-examples@master
33+
34+
# Use the output from the `Compile` step
35+
- name: Compilation Errors
36+
if: failure()
37+
run: |
38+
cat ${{ steps.Compile.outputs.compile-result }}
39+
exit 1

0 commit comments

Comments
 (0)