-
Notifications
You must be signed in to change notification settings - Fork 303
34 lines (29 loc) · 928 Bytes
/
yaml.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Yamllint
# Run yamllint on PRs. This ignores many pre-existing errors in the src/tests/ftests directory
# however those are silenced via the .yamllint file.
# Checks out a merge of the PR onto the target branch so should test the code as landed, not as it
# is in the PR.
on:
pull_request:
paths:
- '**/*.yaml'
- '**/*.yml'
- utils/cq/requirements.txt
permissions: {}
jobs:
yaml-lint:
runs-on: ubuntu-22.04
name: Yamllint check
steps:
- name: Check out source repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version: '3'
- name: Install extra python packages
run: pip install --requirement utils/cq/requirements.txt
- name: Run check
run: yamllint --format github .