diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 000000000..b41c10328 --- /dev/null +++ b/.github/workflows/lint.yml @@ -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 diff --git a/.yamllint.yml b/.yamllint.yml index 382941628..9b7af5f2c 100644 --- a/.yamllint.yml +++ b/.yamllint.yml @@ -3,3 +3,5 @@ rules: document-start: disable document-end: disable line-length: disable + truthy: + check-keys: false