generated from krampus/template-godot4
Added CI job for linting
Some checks failed
linting & formatting / build (push) Failing after 53s
GFOLF - itch.io publish action / build (linux64, x86_64) (push) Successful in 1m1s
GFOLF - itch.io publish action / build (osx, app) (push) Successful in 1m7s
GFOLF - itch.io publish action / build (win64, exe) (push) Successful in 1m14s
Some checks failed
linting & formatting / build (push) Failing after 53s
GFOLF - itch.io publish action / build (linux64, x86_64) (push) Successful in 1m1s
GFOLF - itch.io publish action / build (osx, app) (push) Successful in 1m7s
GFOLF - itch.io publish action / build (win64, exe) (push) Successful in 1m14s
This commit is contained in:
parent
f8fc28ed68
commit
f007b62bd6
32
.gitea/workflows/lint.yaml
Normal file
32
.gitea/workflows/lint.yaml
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
name: linting & formatting
|
||||||
|
run-name: ${{ gitea.actor }} is checking linting & formatting.
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- ci-test
|
||||||
|
tags:
|
||||||
|
- v*
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
run: |
|
||||||
|
git init
|
||||||
|
git remote add origin ${{ gitea.event.repository.clone_url }}
|
||||||
|
git fetch --depth 1 origin ${{ gitea.ref }}
|
||||||
|
git checkout FETCH_HEAD
|
||||||
|
git lfs pull
|
||||||
|
- name: Setup Python
|
||||||
|
uses: actions/setup-python@v5.3.0
|
||||||
|
with:
|
||||||
|
python-version: '3.8'
|
||||||
|
- name: Install gdscript-toolkit
|
||||||
|
run: pip install -r requirements.txt
|
||||||
|
- name: Run gdLint
|
||||||
|
run: gdlint src/**.gd
|
||||||
|
- name: Check formatting
|
||||||
|
run: gdformat -c src
|
Loading…
x
Reference in New Issue
Block a user