mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00

The editorconfig-checker program is not installed by default in the OS used by GitHub Actions. Fortunately, the editorconfig-checker authors have kindly provided the action-editorconfig-checker repository, which we are now using.
32 lines
754 B
YAML
32 lines
754 B
YAML
name: Linting libpng
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- libpng16
|
|
- libpng18
|
|
pull_request:
|
|
branches:
|
|
- libpng16
|
|
- libpng18
|
|
|
|
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: Install editorconfig-checker
|
|
uses: editorconfig-checker/action-editorconfig-checker@main
|
|
- name: Check out the code
|
|
uses: actions/checkout@v4
|
|
- name: Run the linting script
|
|
run: bash ./ci/ci_lint.sh
|