Check the Norminette or Build of the code #17
This file contains hidden or 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
| name: Check the Norminette or Build of the code | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| test_type: | |
| description: 'Choose the type of test?' | |
| required: true | |
| default: 'Norminette' | |
| type: choice | |
| options: | |
| - Norminette | |
| - Build | |
| jobs: | |
| Check_Norminette: | |
| runs-on: ubuntu-latest | |
| if: ${{ github.event.inputs.test_type == 'Norminette' }} | |
| steps: | |
| - name: Checkout the repository | |
| uses: actions/checkout@v5 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.13' | |
| - name: Install Norminette | |
| run: pip3 install norminette | |
| - name: Check Norminette of Mandatory Code | |
| run: norminette src/Mandatory | |
| - name: Check Norminette of Bonus Code | |
| run: norminette src/Bonus | |
| Build: | |
| runs-on: ubuntu-latest | |
| if: ${{ github.event.inputs.test_type == 'Build' }} | |
| steps: | |
| - name: Checkout the repository | |
| uses: actions/checkout@v5 | |
| - name: Build the libft with Mandatory functions | |
| run: make | |
| - name: Archive the libft with Bonus functions | |
| run: make bonus | |
| - name: Clean or *.o files | |
| run: make clean | |
| - name: Check the libft.a file is created? | |
| run: find . -name libft.a |