Skip to content

Backport to Godot v4.1 #12

Backport to Godot v4.1

Backport to Godot v4.1 #12

name: Test Preprocessor
on: [push, pull_request]
env:
GODOT_VERSION: 4.1.3-stable
GODOT_EXECUTABLE: Godot_v${{ env.GODOT_VERSION }}_linux.x86_64

Check failure on line 6 in .github/workflows/test_preprocessor.yml

View workflow run for this annotation

GitHub Actions / Test Preprocessor

Invalid workflow file

The workflow is not valid. .github/workflows/test_preprocessor.yml (Line: 6, Col: 21): Unrecognized named-value: 'env'. Located at position 1 within expression: env.GODOT_VERSION
jobs:
test-preprocessor:
name: Test Preprocessor
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache Godot
id: cache-godot
uses: actions/cache@v3
env:
cache-name: cache-godot
with:
path: ./${{ env.GODOT_EXECUTABLE }}
key: ${{ runner.os }}-${{ env.cache-name }}-${{ env.GODOT_VERSION }}
- if: ${{ steps.cache-godot.outputs.cache-hit != 'true' }}
name: Install Godot
run: |
wget -q https://github.com/godotengine/godot-builds/releases/download/${{ env.GODOT_VERSION }}/${{ env.GODOT_EXECUTABLE }}.zip
unzip ${{ env.GODOT_EXECUTABLE }}.zip
- name: Run tests
run: |
./${{ env.GODOT_EXECUTABLE }} --headless -s test_runner.gd