-
Notifications
You must be signed in to change notification settings - Fork 4
33 lines (27 loc) · 1.01 KB
/
static_checks.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
name: 📊 Static Checks
on: [push, pull_request]
concurrency:
group: ci-${{ github.actor }}-${{ github.head_ref || github.run_number }}-${{ github.ref }}-static
jobs:
static-checks:
name: Code style and file formatting
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Install APT dependencies
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libxml2-utils
- name: Install Python dependencies and general setup
run: |
git config diff.wsErrorHighlight all
- name: Style checks via pre-commit
uses: pre-commit/[email protected]
with:
extra_args: --all-files
- name: XML validation via xmllint
run: |
xmllint --noout data/io.github.flattool.Ignition.gschema.xml data/io.github.flattool.Ignition.metainfo.xml.in src/io.github.flattool.Ignition.data.gresource.xml src/io.github.flattool.Ignition.src.gresource.xml