| 1 |
name: Linting libpng |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: |
| 6 |
- libpng16 |
| 7 |
- libpng18 |
| 8 |
pull_request: |
| 9 |
branches: |
| 10 |
- libpng16 |
| 11 |
- libpng18 |
| 12 |
|
| 13 |
jobs: |
| 14 |
lint: |
| 15 |
runs-on: ubuntu-latest |
| 16 |
timeout-minutes: 5 |
| 17 |
steps: |
| 18 |
- name: Set up the cache |
| 19 |
uses: actions/cache@v4 |
| 20 |
with: |
| 21 |
path: ~/.cache/pip |
| 22 |
key: ${{ runner.os }}-pip-${{ hashFiles('**/pip.txt') }} |
| 23 |
restore-keys: ${{ runner.os }}-pip- |
| 24 |
- name: Install yamllint |
| 25 |
run: pip install yamllint |
| 26 |
- name: Install editorconfig-checker |
| 27 |
uses: editorconfig-checker/action-editorconfig-checker@main |
| 28 |
- name: Check out the code |
| 29 |
uses: actions/checkout@v4 |
| 30 |
- name: Run the linting script |
| 31 |
run: bash ./ci/ci_lint.sh |