2021-11-25 14:48:30 +02:00
|
|
|
name: Static Checks 📊
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches-ignore:
|
|
|
|
- gh-pages
|
|
|
|
- l10n_master
|
|
|
|
pull_request:
|
|
|
|
paths:
|
2021-11-25 18:56:19 +02:00
|
|
|
- "addons/**"
|
|
|
|
- "src/**"
|
2021-11-25 14:48:30 +02:00
|
|
|
|
2023-06-15 21:33:09 +03:00
|
|
|
concurrency:
|
|
|
|
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-static
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2021-11-25 14:48:30 +02:00
|
|
|
jobs:
|
2023-06-15 17:52:03 +03:00
|
|
|
static-checks:
|
2021-11-25 14:48:30 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-06-15 17:52:03 +03:00
|
|
|
- name: Checkout
|
2023-09-04 17:19:12 +03:00
|
|
|
uses: actions/checkout@v4
|
2024-10-13 02:06:24 +03:00
|
|
|
- uses: Scony/godot-gdscript-toolkit@master
|
2023-06-15 17:52:03 +03:00
|
|
|
- name: Formatting checks
|
|
|
|
run: gdformat --diff .
|
|
|
|
- name: Linting checks
|
|
|
|
run: gdlint .
|
|
|
|
- name: Spell checks via codespell
|
2023-10-05 17:45:58 +03:00
|
|
|
uses: codespell-project/actions-codespell@v2
|
2023-06-15 17:52:03 +03:00
|
|
|
with:
|
|
|
|
skip: ./addons,*.po
|
2023-10-16 02:09:13 +03:00
|
|
|
exclude_file: src/UI/Dialogs/AboutDialog.gd
|
2024-05-25 00:41:57 +03:00
|
|
|
ignore_words_list: chello,doubleclick,Manuel, SectionIn
|