mirror of
https://github.com/guezoloic/libft.git
synced 2026-01-25 03:34:16 +00:00
32 lines
717 B
YAML
32 lines
717 B
YAML
name: Static Analysis
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
norminette:
|
|
name: Norminette Check
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: 3.x
|
|
|
|
- name: Install Norminette
|
|
run: pip install norminette
|
|
|
|
# Remove headers from Norminette repo
|
|
- name: Remove Norminette header check
|
|
run: |
|
|
NORM_PATH=$(python3 -c "import norminette; print(norminette.__file__)")
|
|
rm -f "$(dirname "$NORM_PATH")/rules/check_header.py"
|
|
|
|
- name: Run Norminette
|
|
run: norminette ./*.c |