Skip to content
This repository was archived by the owner on Jul 24, 2025. It is now read-only.

Commit e69a8ca

Browse files
committed
feat(ci): new workflow
1 parent 0a23824 commit e69a8ca

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/integration.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
on:
2+
push:
3+
pull_request:
4+
5+
name: Integration
6+
7+
jobs:
8+
9+
coding-style:
10+
name: Check Coding Style
11+
runs-on: ubuntu-latest
12+
container:
13+
image: ghcr.io/epitech/coding-style-checker:latest
14+
steps:
15+
16+
- name: Checkout Repository
17+
uses: actions/checkout@v4
18+
19+
- name: Check Coding Style
20+
run: check.sh $(pwd) $(pwd)
21+
22+
- name: Report banana result
23+
run: |
24+
NB_ERROR=$(cat coding-style-reports.log | wc -l)
25+
if [ $NB_ERROR -gt 0 ]; then
26+
ERRORS=$(cat coding-style-reports.log);
27+
echo "Banana found $NB_ERROR error(s)"
28+
echo "$ERRORS"
29+
exit 1
30+
fi
31+
echo "Everything is good ! Keep on coding !"
32+
exit 0

0 commit comments

Comments
 (0)