Skip to content

Commit

Permalink
Remove tests
Browse files Browse the repository at this point in the history
Signed-off-by: Alex J Lennon <[email protected]>
  • Loading branch information
ajlennon committed Jul 20, 2024
1 parent 08ab01d commit 3dad556
Showing 1 changed file with 0 additions and 87 deletions.
87 changes: 0 additions & 87 deletions .github/workflows/gdextension_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -309,90 +309,3 @@ jobs:
name: ${{steps.output_info.outputs.artifact_name}}
retention-days: 7
path: extracted_files/*

# ============================================

test_api_integration:
name: "🧪 Testing API: ${{matrix.runner-os}}, Godot-${{matrix.file_suffix}}"
runs-on: ${{matrix.runner-os}}
needs: collect-gdextension

strategy:
fail-fast: false
matrix:
# sync with other jobs
runner-os: [ubuntu-20.04, macos-latest, windows-latest]
include:
- runner-os: ubuntu-20.04
file_suffix: "stable_linux.x86_64.zip"
- runner-os: macos-latest
file_suffix: "stable_macos.universal.zip"
- runner-os: windows-latest
file_suffix: "stable_win64.exe.zip"

env:
# Sync with container: image:
GODOT_VERSION: 4.2.1-stable
PROJECT_PATH: dd3d_web_build

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Delete old libs folder
shell: bash
run: |
rm -rf addons/debug_draw_3d/libs
- name: Download Binaries
uses: actions/download-artifact@v4
with:
path: addons/debug_draw_3d/libs
name: ${{needs.collect-gdextension.outputs.artifact_name}}

- name: Prepare Test Project
shell: bash
run: |
cp -r addons ${{env.PROJECT_PATH}}/addons
cp -r examples_dd3d ${{env.PROJECT_PATH}}/examples_dd3d
find ${{env.PROJECT_PATH}} -mindepth 1
- name: Setup Godot
uses: ./.github/actions/setup_godot
id: setup_godot
with:
tag: ${{env.GODOT_VERSION}}
file_suffix: ${{matrix.file_suffix}}
download_export_templates: false
is_mono: false

- name: macOS dependencies
shell: bash
if: runner.os == 'macOS'
run: |
brew install coreutils
alias timeout="gtimeout"
- name: Test run
shell: bash --noprofile --norc -o pipefail {0}
run: |
max_attempts=3
current_attempt=1
last_exit_code=0
until [ $current_attempt -gt $max_attempts ]; do
current_attempt=$((current_attempt + 1))
timeout 2m ${{steps.setup_godot.outputs.godot}} -v -e --headless --path ${{env.PROJECT_PATH}} --quit || true
timeout 2m ${{steps.setup_godot.outputs.godot}} -v --headless --path ${{env.PROJECT_PATH}} res://headless_test.tscn || true
if [ ! -f "${{env.PROJECT_PATH}}/SUCCESS" ]; then
echo "The file reporting success has not been created! Failed."
last_exit_code=1
else
echo "The file reporting success has been created! Success!"
exit 0
fi
done
echo "The maximum number of attempts has been reached. Last error code: $?"
exit $last_exit_code

0 comments on commit 3dad556

Please sign in to comment.