Add a GitHub Action for linting

libpng16
Cosmin Truta 2024-02-15 15:43:54 +02:00
parent f74d5ecce8
commit 42c8fcbff9
2 changed files with 29 additions and 0 deletions

27
.github/workflows/lint.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: Linting libpng
on:
push:
branches:
- libpng16
pull_request:
branches:
- libpng16
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Set up the cache
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/pip.txt') }}
restore-keys: ${{ runner.os }}-pip-
- name: Install yamllint
run: pip install yamllint
- name: Check out the code
uses: actions/checkout@v4
- name: Run the linting script
run: bash ./ci/ci_lint.sh

View File

@ -3,3 +3,5 @@ rules:
document-start: disable
document-end: disable
line-length: disable
truthy:
check-keys: false