Skip to content

📝 Norm issue with lib #2

📝 Norm issue with lib

📝 Norm issue with lib #2

Workflow file for this run

name: Norminette v3
on:
push:
paths:
- '**.c'
- '**.h'
branches: [ master ]
pull_request:
paths:
- '**.c'
- '**.h'
branches: [ master ]
jobs:
linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 3.8
architecture: x64
- name: Upgrade pip
run: python3 -m pip install --upgrade pip setuptools
- name: Install norminette
run: python3 -m pip install norminette
- name: Run norminette
run: |
rm -rf mlx
LOGS=$(mktemp)
norminette $(find -regex '.*/.*\.\(c\|h\)$' -not -path '*/test/*') | tee $LOGS
echo "ERRORS=$(grep -E 'Error|Warning|KO!' $LOGS | wc -l)" >> $GITHUB_ENV
- name: Checks norminette linter result
run: |
echo "Norminette Result"
[[ $ERRORS == 0 ]]