Add TimeLimiter node #72
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: 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 }} |