-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
93 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Run Godot tests | ||
description: Run a test project on the target platform. | ||
|
||
inputs: | ||
project-path: | ||
default: "./tests" | ||
run-script: | ||
default: "./run.gd" | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Run the project script | ||
shell: bash | ||
run: | | ||
godot --headless --path ${{ inputs.project-path }} --script ${{ inputs.run-script }} --verbose |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Run Tests | ||
|
||
on: | ||
workflow_call: | ||
|
||
# Make sure jobs cannot overlap. | ||
concurrency: | ||
group: test-${{ github.ref }}-project | ||
cancel-in-progress: true | ||
|
||
env: | ||
GODOT_VERSION: "4.3.0-stable" | ||
|
||
jobs: | ||
export-publish: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- platform: linux | ||
arch: x86_64 | ||
preset: "Linux - x86_64" | ||
runs-on: ubuntu-latest | ||
|
||
name: Run the tests project (${{ matrix.preset }}) | ||
runs-on: ${{ matrix.runs-on }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
# Set up prerequisites. | ||
|
||
- name: Install Godot ${{ env.GODOT_VERSION }} | ||
uses: chickensoft-games/setup-godot@v2 | ||
with: | ||
version: ${{ env.GODOT_VERSION }} | ||
use-dotnet: false | ||
include-templates: true | ||
|
||
- name: Verify Godot | ||
shell: bash | ||
run: | | ||
godot --version | ||
- name: Download GDSiON artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: tests/bin | ||
pattern: libgdsion-* | ||
merge-multiple: true | ||
|
||
# Run the tests. | ||
|
||
- name: Run tests | ||
uses: ./.github/actions/run-godot-tests |