Skip to content

Commit ad5193e

Browse files
committed
github: Add GUT tests job
Rename the pre-commit workflow to the more generic "checks" and add a job to run GUT. This makes use of the chickensoft-games/setup-godot action to download and cache Godot for Linux.
1 parent 4e7f034 commit ad5193e

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/pre-commit.yaml renamed to .github/workflows/checks.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: pre-commit
1+
name: Checks
22

33
on:
44
pull_request:
@@ -8,6 +8,7 @@ on:
88

99
jobs:
1010
pre-commit:
11+
name: Linting and Formatting
1112
runs-on: ubuntu-latest
1213
steps:
1314
- uses: actions/checkout@v4
@@ -19,3 +20,18 @@ jobs:
1920
path: ~/.cache/pre-commit
2021
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
2122
- uses: pre-commit/[email protected]
23+
24+
tests:
25+
name: Tests
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v4
30+
- name: Setup Godot
31+
uses: chickensoft-games/[email protected]
32+
with:
33+
version: 4.2.2
34+
use-dotnet: false
35+
- name: Run tests
36+
run: |
37+
godot --path . --headless --script addons/gut/gut_cmdln.gd -gexit

0 commit comments

Comments
 (0)