CI #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
merge_group: | |
schedule: | |
- cron: "0 14 * * 1" # Every Monday at 9 A.M. CST. | |
workflow_dispatch: | |
env: | |
CI: true | |
GODOT_VERSION: "4.2.1" | |
GDTOOLKIT_VERSION: "4.2.2" | |
DENO_VERSION: "v1.40.3" | |
permissions: | |
contents: read | |
jobs: | |
lint: | |
name: Linting | |
needs: [] | |
timeout-minutes: 5 | |
runs-on: ubuntu-latest | |
steps: | |
- name: π Git checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
submodules: recursive | |
clean: true | |
persist-credentials: false | |
set-safe-directory: true | |
- name: π€ Set up Godot | |
uses: Scony/godot-gdscript-toolkit@cbd7a1dcff14cd272787a4ca497c7ff328714a6c # master | |
with: | |
version: ${{ env.GDTOOLKIT_VERSION }} | |
- name: π¬ Verify setup | |
run: gdparse --version | |
- name: π΅οΈ Analyze project source | |
run: gdlint . | |
format: | |
name: Formatting | |
needs: [] | |
timeout-minutes: 3 | |
runs-on: ubuntu-latest | |
steps: | |
- name: π Git checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
submodules: recursive | |
clean: true | |
persist-credentials: false | |
set-safe-directory: true | |
- name: π€ Set up Godot | |
uses: Scony/godot-gdscript-toolkit@cbd7a1dcff14cd272787a4ca497c7ff328714a6c # master | |
with: | |
version: ${{ env.GDTOOLKIT_VERSION }} | |
- name: π¬ Verify setup | |
run: gdparse --version | |
- name: β¨ Verify formatting | |
run: gdformat --check $(find . -name '*.gd' -not -path "./addons/*") |