chore: org raw html in github readme syntax? #25
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: GUT Tests | |
on: [ push ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: Godot Dev Env | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache Godot files | |
id: cache-godot | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.local/share/godot/** | |
/usr/local/bin/godot | |
~/.config/godot/** | |
key: ${{ runner.os }}-godot-${{ vars.GODOT_VERSION }} | |
- name: Download and config Godot Engine headless linux server | |
if: steps.cache-godot.outputs.cache-hit != 'true' | |
shell: bash | |
run: | | |
wget -q https://downloads.tuxfamily.org/godotengine/${{ vars.GODOT_VERSION }}/Godot_v${{ vars.GODOT_VERSION }}-stable_linux.x86_64.zip | |
mkdir ~/.cache | |
mkdir -p ~/.config/godot | |
unzip Godot_v${{ vars.GODOT_VERSION }}-stable_linux.x86_64.zip | |
mv Godot_v${{ vars.GODOT_VERSION }}-stable_linux.x86_64 /usr/local/bin/godot | |
- name: Initial Godot import | |
shell: bash | |
run: | | |
godot --quiet --editor --headless -s addons/core/initial_import.gd | |
godot --editor --headless --quit || exit 0 | |
- name: Run tests | |
shell: bash | |
run: godot --headless --path . --debug --script addons/gut/gut_cmdln.gd -gexit |