Enable tests for v3.2

OS.set_environment() not available in v3.2 so create a new gut config
file that skips these tests for v3.2.
This commit is contained in:
Leroy Hopson 2021-07-23 22:06:29 +07:00
parent bb18df817d
commit bec14fee14
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA
2 changed files with 16 additions and 1 deletions

View file

@ -308,7 +308,7 @@ jobs:
matrix: matrix:
os: [ windows-latest, macos-latest ] os: [ windows-latest, macos-latest ]
bits: [ 64, 32 ] bits: [ 64, 32 ]
godot_version: [ 'v3.3.2-stable', 'v3.4-beta1' ] godot_version: [ '3.2', '3.3.2', '3.4-beta1' ]
target: [ release, debug ] target: [ release, debug ]
exclude: exclude:
- os: macos-latest - os: macos-latest
@ -345,8 +345,13 @@ jobs:
run: godot --export HTML5 run: godot --export HTML5
- name: Run tests - name: Run tests
if: ${{ matrix.godot_version != '3.2' }}
shell: bash shell: bash
run: godot --no-window -s addons/gut/gut_cmdln.gd -gconfig=test/.gutconfig.ci.json run: godot --no-window -s addons/gut/gut_cmdln.gd -gconfig=test/.gutconfig.ci.json
- name: Run v3.2 tests
if: ${{ matrix.godot_version == '3.2' }}
shell: bash
run: godot --no-window -s addons/gut/gut_cmdln.gd -gconfig=test/.gutconfig.3.2.json
- name: Run unix tests - name: Run unix tests
if: ${{ matrix.os == 'macos-latest' || matrix.os == 'ubuntu-latest' }} if: ${{ matrix.os == 'macos-latest' || matrix.os == 'ubuntu-latest' }}
run: godot --no-window -s addons/gut/gut_cmdln.gd -gconfig=test/.gutconfig.unix.json run: godot --no-window -s addons/gut/gut_cmdln.gd -gconfig=test/.gutconfig.unix.json

10
test/.gutconfig.3.2.json Normal file
View file

@ -0,0 +1,10 @@
{
"dirs": [
"res://test/unit"
],
"prefix": "",
"suffix": ".test.gd",
"include_subdirs": true,
"log_level": 2,
"should_exit": true
}