Delete .github/workflows/carologata_tester.yml #576
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# **************************************************************************** # | |
# # | |
# ::: :::::::: # | |
# 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 |