This repository has been archived by the owner on Jun 19, 2024. It is now read-only.
Weeklyshell workflow setting #4
Workflow file for this run
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
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
check_42_norm: | |
runs-on: ubuntu-latest | |
steps: | |
- name: install 42 norminette | |
run: | | |
sudo apt update | |
sudo apt install python3 -y | |
python3 -m pip install --upgrade pip setuptools | |
python3 -m pip install --upgrade norminette | |
- name: check for compilation errors | |
run: | | |
sudo apt update | |
sudo apt install build-essentials -y | |
for f in $(find . -name \*.c); do gcc -Wall -Wextra -Werror -fsyntax-only $f; done | |
- name: check for 42 norminette requirements | |
run: norminette . |