Skip to content

Commit 42c8fcb

Browse files
committed
Add a GitHub Action for linting
1 parent f74d5ec commit 42c8fcb

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.github/workflows/lint.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Linting libpng
2+
3+
on:
4+
push:
5+
branches:
6+
- libpng16
7+
pull_request:
8+
branches:
9+
- libpng16
10+
11+
jobs:
12+
lint:
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 5
15+
steps:
16+
- name: Set up the cache
17+
uses: actions/cache@v4
18+
with:
19+
path: ~/.cache/pip
20+
key: ${{ runner.os }}-pip-${{ hashFiles('**/pip.txt') }}
21+
restore-keys: ${{ runner.os }}-pip-
22+
- name: Install yamllint
23+
run: pip install yamllint
24+
- name: Check out the code
25+
uses: actions/checkout@v4
26+
- name: Run the linting script
27+
run: bash ./ci/ci_lint.sh

.yamllint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ rules:
33
document-start: disable
44
document-end: disable
55
line-length: disable
6+
truthy:
7+
check-keys: false

0 commit comments

Comments
 (0)