Skip to content

Commit

Permalink
Add nightly tests to unittests.ymll
Browse files Browse the repository at this point in the history
  • Loading branch information
GsLogiMaker committed May 6, 2024
1 parent 9f7ec0f commit 4255c2a
Showing 1 changed file with 29 additions and 5 deletions.
34 changes: 29 additions & 5 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ env:
LINUX_64_TARGET: x86_64-unknown-linux-gnu

jobs:
unittests_linux_x86_64:
build_linux_x86_64:

runs-on: ubuntu-latest

Expand Down Expand Up @@ -50,8 +50,6 @@ jobs:
with:
# Version must include major, minor, and patch, and be >= 4.0.0
version: 4.2.1
mono: false


# This shouldn't be needed because the important files from .godot are
# included, but we run the import process just in case.
Expand All @@ -74,7 +72,7 @@ jobs:

update_nightly:

needs: unittests_linux_x86_64
needs: build_linux_x86_64
runs-on: windows-latest

steps:
Expand Down Expand Up @@ -134,4 +132,30 @@ jobs:
branch: nightly
directory: ../nightly



nightly_unittests_linux_x86_64:

needs: update_nightly
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: 🐙 Checkout nightly branch
run: git checkout nightly

- name: 🤖 Setup Godot
uses: chickensoft-games/setup-godot@v1
with:
# Version must include major, minor, and patch, and be >= 4.0.0
version: 4.2.1

# This shouldn't be needed because the important files from .godot are
# included, but we run the import process just in case.
- name: 📧 Run Godot import
run: |
godot --headless --editor --quit-after 100
- name: ✏️ Run unittests
run: |
godot -s res://addons/gut/gut_cmdln.gd --headless -gdir="res://unittests" -gexit

0 comments on commit 4255c2a

Please sign in to comment.