From 9254f1af128c26d490f7fc3e8f731353475e4b0e Mon Sep 17 00:00:00 2001 From: SheepBomber Date: Sat, 28 Feb 2026 14:20:13 +0100 Subject: [PATCH] fix(ci): use gdtoolkit 4.* for gdlint --- .github/workflows/main.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..96e01f4 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,30 @@ +name: GDScript Linter + +on: + pull_request: + push: + branches: [ main, develop ] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout código + uses: actions/checkout@v4 + + - name: Instalar Python + uses: actions/setup-python@v5 + with: + python-version: "3.11" + cache: "pip" + + - name: Instalar gdtoolkit (gdlint/gdformat) + run: | + python -m pip install --upgrade pip + python -m pip install "gdtoolkit==4.*" + + - name: Comprobar formato + run: gdformat --check . + + - name: Ejecutar linter + run: gdlint . \ No newline at end of file