Skip to content

Delete .github/workflows/carologata_tester.yml #576

Delete .github/workflows/carologata_tester.yml

Delete .github/workflows/carologata_tester.yml #576

Workflow file for this run

# **************************************************************************** #
# #
# ::: :::::::: #
# program_builder.yml :+: :+: :+: #
# +:+ +:+ +:+ #
# By: umeneses <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/06/12 11:04:11 by umeneses #+# #+# #
# Updated: 2024/09/23 17:28:49 by umeneses ### ########.fr #
# #
# **************************************************************************** #
name: norminette
on:
push:
branches:
- main
- '**feature**'
- '**feat**'
- '**bugfix**'
- '**fix**'
- '**release**'
pull_request:
branches:
- main
- '**feature**'
- '**feat**'
- '**bugfix**'
- '**fix**'
- '**release**'
jobs:
norminette:
runs-on: ubuntu-latest
timeout-minutes: 2
defaults:
run:
working-directory: ./
steps:
- name: Starting Github Actions
uses: actions/[email protected]
- name: Building Program with MiniShell Makefile
run: make
- name: Install Aptitude
run: sudo apt-get update && sudo apt install aptitude -y
- name: Install Python for Norminette
uses: actions/[email protected]
with:
python-version: '3.10'
- name: Install Python Dependencies
run: python -m pip install --upgrade pip setuptools
- name: Install Norminette
run: python -m pip install norminette
- name: Running Norminette with Failure Counter
run: |
failed_count=0
for file in $(find ./headers ./libs ./src -name '*.c' -o -name '*.h'); do
if ! norminette -R CheckForbiddenSourceHeader "$file"; then
failed_count=$((failed_count + 1))
fi
done
if [ "$failed_count" -gt 0 ]; then
echo "😭 😭 😭 "
echo -e "\033[1;31mNorminette failed for $failed_count file(s)\033[0m"
exit 1
else
echo "🎊 🎊 🎊"
echo "😎 😎 😎"
echo "🎉 🎉 🎉"
echo -e "\033[1;32mAll files passed Norminette\033[0m"
fi
# :: github actions documentation ::
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions