-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (45 loc) · 1.04 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Godot CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
concurrency:
group: ci-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
lint-and-format:
runs-on: ubuntu-latest
timeout-minutes: 10 # The overall timeout
steps:
- uses: actions/checkout@v4
- name: Install GDScript Toolkit
run: |
pip install gdtoolkit
- name: Lint
run: |
gdlint .
- name: Format Check
run: |
gdformat --check .
unit-test:
runs-on: ubuntu-latest
timeout-minutes: 10 # The overall timeout
permissions:
actions: write
checks: write
contents: write
pull-requests: write
statuses: write
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: MikeSchulze/gdUnit4-action@v1.1.1
with:
godot-version: "4.3"
paths: |
res://
timeout: 5
report-name: test_report.xml