Skip to content

Commit ece0002

Browse files
committed
[CI] Add Continuous Integration workflow
Signed-off-by: Frederic Pillon <[email protected]>
1 parent ccd2b2e commit ece0002

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: STM32Ethernet Continuous Integration
2+
on:
3+
push:
4+
branches:
5+
- master
6+
paths-ignore:
7+
- '*'
8+
- '**.md'
9+
- '**.txt'
10+
pull_request:
11+
paths-ignore:
12+
- '*'
13+
- '**.md'
14+
- '**.txt'
15+
jobs:
16+
astyle_check:
17+
runs-on: ubuntu-latest
18+
name: AStyle check
19+
steps:
20+
# First of all, clone the repo using the checkout action.
21+
- name: Checkout
22+
uses: actions/checkout@master
23+
24+
- name: Astyle check
25+
id: Astyle
26+
uses: stm32duino/actions/astyle-check@master
27+
28+
# Use the output from the `Astyle` step
29+
- name: Astyle Errors
30+
if: failure()
31+
run: |
32+
cat ${{ steps.Astyle.outputs.astyle-result }}
33+
exit 1
34+
spell-check:
35+
runs-on: ubuntu-latest
36+
name: Spell check
37+
steps:
38+
- uses: actions/checkout@master
39+
- uses: arduino/actions/libraries/spell-check@master
40+
# with:
41+
# ignore-words-list: "./extras/codespell-ignore-words-list.txt"
42+
lib_build:
43+
runs-on: ubuntu-latest
44+
name: Library compilation
45+
steps:
46+
# First of all, clone the repo using the checkout action.
47+
- name: Checkout
48+
uses: actions/checkout@master
49+
50+
- name: Compilation
51+
id: Compile
52+
uses: stm32duino/actions/compile-examples@master
53+
with:
54+
board-pattern: "DISCO_F746NG|NUCLEO_F429ZI|NUCLEO_F767ZI"
55+
libraries: "STM32duino LwIP"
56+
57+
# Use the output from the `Compile` step
58+
- name: Compilation Errors
59+
if: failure()
60+
run: |
61+
cat ${{ steps.Compile.outputs.compile-result }}
62+
exit 1

0 commit comments

Comments
 (0)