-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (27 loc) · 946 Bytes
/
test_preprocessor.yml
File metadata and controls
32 lines (27 loc) · 946 Bytes
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
name: Test Preprocessor
on: [push, pull_request]
env:
GODOT_EXECUTABLE: Godot_v${{ vars.GODOT_VERSION }}_linux.x86_64
jobs:
test-preprocessor:
name: Test Preprocessor
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache Godot
id: cache-godot
uses: actions/cache@v4
env:
cache-name: cache-godot
with:
path: ./${{ env.GODOT_EXECUTABLE }}
key: ${{ runner.os }}-${{ env.cache-name }}-${{ vars.GODOT_VERSION }}
- if: ${{ steps.cache-godot.outputs.cache-hit != 'true' }}
name: Install Godot
run: |
wget -q https://github.com/godotengine/godot-builds/releases/download/${{ vars.GODOT_VERSION }}/${{ env.GODOT_EXECUTABLE }}.zip
unzip ${{ env.GODOT_EXECUTABLE }}.zip
- name: Run tests
run: |
./${{ env.GODOT_EXECUTABLE }} --headless -s tests/runner.gd