-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (48 loc) · 1.45 KB
/
action.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
name: my_rpg
on: [push, pull_request]
env:
EXECUTABLE: my_rpg
jobs:
check_coding_style:
runs-on: ubuntu-latest
container:
image: ghcr.io/epitech/coding-style-checker:latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Launch coding style checker
run: check.sh $(pwd) $(pwd)
- name: Check coding style
run:
cat coding-style-reports.log;
.github/workflows/display_coding_style
check_program:
runs-on: ubuntu-latest
container:
image: epitechcontent/epitest-docker
needs: check_coding_style
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Launch "make"
run: make
timeout-minutes: 2
- name: Launch "make clean"
run: make clean
- name: Check program compilation
run: .github/workflows/check_program_compilation ${{ env.EXECUTABLE }}
- name: Launch "make tests_run"
run: make tests_run
timeout-minutes: 2
- name: Check repository size
run: |
make fclean
size=$(du -sm --exclude='.git' | cut -f1)
limit=35
if [ "$size" -gt "$limit" ]; then
echo "::error title=Repository size::Repository size is too big ($size MB > $limit MB)"
exit 1
else
echo "::notice title=Repository size::Repository size is correct ($size MB <= $limit MB)"
exit 0
fi