From bec14fee14dc1a7c6900182da2c247535694883e Mon Sep 17 00:00:00 2001 From: Leroy Hopson Date: Fri, 23 Jul 2021 22:06:29 +0700 Subject: [PATCH] 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. --- .github/workflows/main.yml | 7 ++++++- test/.gutconfig.3.2.json | 10 ++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 test/.gutconfig.3.2.json diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 78a93ab..59a8283 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -308,7 +308,7 @@ jobs: matrix: os: [ windows-latest, macos-latest ] 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 ] exclude: - os: macos-latest @@ -345,8 +345,13 @@ jobs: run: godot --export HTML5 - name: Run tests + if: ${{ matrix.godot_version != '3.2' }} shell: bash 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 if: ${{ matrix.os == 'macos-latest' || matrix.os == 'ubuntu-latest' }} run: godot --no-window -s addons/gut/gut_cmdln.gd -gconfig=test/.gutconfig.unix.json diff --git a/test/.gutconfig.3.2.json b/test/.gutconfig.3.2.json new file mode 100644 index 0000000..cef2056 --- /dev/null +++ b/test/.gutconfig.3.2.json @@ -0,0 +1,10 @@ +{ + "dirs": [ + "res://test/unit" + ], + "prefix": "", + "suffix": ".test.gd", + "include_subdirs": true, + "log_level": 2, + "should_exit": true +}