Skip to content

Add TimeLimiter node #72

Add TimeLimiter node

Add TimeLimiter node #72

Workflow file for this run

name: beehave-ci
on:
push:
branches:
- "godot-4.x"
paths-ignore:
- '**.jpg'
- '**.png'
- '**.svg'
- '**.md'
- '**plugin.cfg'
pull_request:
paths-ignore:
- '**.jpg'
- '**.png'
- '**.svg'
- '**.md'
- '**plugin.cfg'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
unit-test:
name: "πŸ€– unit tests on Godot v${{ matrix.godot-version }}-${{ matrix.godot-status-version }} (${{ matrix.name }})"
runs-on: ${{ matrix.os }}
timeout-minutes: 15
continue-on-error: false
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04]
godot-version: ['4.0.2']
godot-status-version: ['stable']
include:
- os: ubuntu-22.04
name: Godot 🐧 Linux Build
godot-bin-name: 'linux.x86_64'
godot-executable_path: '~/godot-linux/godot'
godot-cache-path: '~/godot-linux'
godot-mono: false
install-opengl: true
steps:
- name: "πŸ“¦ Checkout Beehave Repository"
uses: actions/checkout@v3
- name: "πŸ€– Install Godot ${{ matrix.godot-version }}"
uses: ./.github/actions/godot-install
with:
godot-version: ${{ matrix.godot-version }}
godot-status-version: ${{ matrix.godot-status-version }}
godot-bin-name: ${{ matrix.godot-bin-name }}
godot-cache-path: ${{ matrix.godot-cache-path }}
- name: "♻️ Update Godot project cache"
if: ${{ !cancelled() }}
timeout-minutes: 1
continue-on-error: true # we still ignore the timeout, the script is not quit and we run into a timeout
shell: bash
run: |
${{ matrix.godot-executable_path }} --version
${{ matrix.godot-executable_path }} -e --path . -s res://addons/gdUnit4/bin/ProjectScanner.gd --headless
- name: "πŸ§ͺ Run Unit Tests"
if: ${{ !cancelled() }}
timeout-minutes: 10
uses: ./.github/actions/unit-test
with:
godot-bin: ${{ matrix.godot-executable_path }}
test-includes: "res://test/"
#- name: "πŸ“š Publish Unit Test Reports"
# if: ${{ !cancelled() }}
# uses: ./.github/actions/publish-test-report
# with:
# report-name: ${{ matrix.godot-build }}${{ matrix.godot-version }}
#- name: "πŸŽ‰ Upload Unit Test Reports"
# if: ${{ !cancelled() }}
# uses: ./.github/actions/upload-test-report
# with:
# report-name: ${{ matrix.godot-build }}${{ matrix.godot-version }}