Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 64957334de | |||
| 7323b6e814 | |||
| 24f9801093 | |||
| bcc8af76c2 |
@@ -36,53 +36,53 @@ jobs:
|
||||
INITIAL_VERSION: 0.1.0
|
||||
DEFAULT_BUMP: patch
|
||||
|
||||
Test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install node, xvfb and curl
|
||||
run: |
|
||||
apt update && apt -y install curl nodejs xvfb
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
lfs: false
|
||||
persist-credentials: true
|
||||
|
||||
- name: Checkout LFS
|
||||
run: |
|
||||
git lfs install --local
|
||||
AUTH=$(git config http.${{ gitea.server_url }}/.extraheader)
|
||||
AUTH_FILE=$(git config includeif.gitdir:/workspace/${{ gitea.repository }}/.git.path)
|
||||
git config -f $AUTH_FILE --unset http.${{ gitea.server_url }}/.extraheader
|
||||
git config -f $AUTH_FILE http.${{ gitea.server_url }}/${{ gitea.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH"
|
||||
git lfs pull
|
||||
|
||||
- name: Launch Godot
|
||||
uses: godot-gdunit-labs/gdUnit4-action@v1
|
||||
with:
|
||||
godot-version: '4.5.1'
|
||||
godot-net: true
|
||||
godot-force-mono: true
|
||||
dotnet-version: 'net9.0'
|
||||
version: 'v6.0.3'
|
||||
paths: |
|
||||
res://tests/
|
||||
timeout: 1
|
||||
publish-report: false
|
||||
upload-report: false
|
||||
|
||||
- name: Upload test report
|
||||
uses: actions/upload-artifact@v3-node20
|
||||
with:
|
||||
name: Test Report
|
||||
path: ${{ github.workspace }}/reports/test-result.html
|
||||
# Test:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - name: Install node, xvfb and curl
|
||||
# run: |
|
||||
# apt update && apt -y install curl nodejs xvfb
|
||||
#
|
||||
# - name: Checkout
|
||||
# uses: actions/checkout@v6
|
||||
# with:
|
||||
# lfs: false
|
||||
# persist-credentials: true
|
||||
#
|
||||
# - name: Checkout LFS
|
||||
# run: |
|
||||
# git lfs install --local
|
||||
# AUTH=$(git config http.${{ gitea.server_url }}/.extraheader)
|
||||
# AUTH_FILE=$(git config includeif.gitdir:/workspace/${{ gitea.repository }}/.git.path)
|
||||
# git config -f $AUTH_FILE --unset http.${{ gitea.server_url }}/.extraheader
|
||||
# git config -f $AUTH_FILE http.${{ gitea.server_url }}/${{ gitea.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH"
|
||||
# git lfs pull
|
||||
#
|
||||
# - name: Launch Godot
|
||||
# uses: godot-gdunit-labs/gdUnit4-action@v1
|
||||
# with:
|
||||
# godot-version: '4.5.1'
|
||||
# godot-net: true
|
||||
# godot-force-mono: true
|
||||
# dotnet-version: 'net9.0'
|
||||
# version: 'v6.0.3'
|
||||
# paths: |
|
||||
# res://tests/
|
||||
# timeout: 1
|
||||
# publish-report: false
|
||||
# upload-report: false
|
||||
#
|
||||
# - name: Upload test report
|
||||
# uses: actions/upload-artifact@v3-node20
|
||||
# with:
|
||||
# name: Test Report
|
||||
# path: ${{ github.workspace }}/reports/test-result.html
|
||||
|
||||
Export:
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- BumpTag
|
||||
- Test # Wait for tests to finish
|
||||
# - Test # Wait for tests to finish
|
||||
container:
|
||||
image: barichello/godot-ci:mono-4.5
|
||||
|
||||
|
||||
@@ -129,14 +129,4 @@
|
||||
<ItemGroup>
|
||||
<PackageReference Include="RustyOptions" Version="0.10.1" />
|
||||
</ItemGroup>
|
||||
<!-- gdUnit4 package dependencies -->
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.0"/>
|
||||
<PackageReference Include="gdUnit4.api" Version="5.1.0-rc3"/>
|
||||
<PackageReference Include="gdUnit4.test.adapter" Version="3.0.0"/>
|
||||
<PackageReference Include="gdUnit4.analyzers" Version="1.0.0">
|
||||
<PrivateAssets>none</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -43,7 +43,7 @@ movie_writer/movie_file="D:/Godot/Projects/movement-tests/communication/movie.av
|
||||
|
||||
[editor_plugins]
|
||||
|
||||
enabled=PackedStringArray("res://addons/godot_state_charts/plugin.cfg", "res://addons/guide/plugin.cfg", "res://addons/maaacks_game_template/plugin.cfg", "res://addons/shaker/plugin.cfg", "res://addons/gdUnit4/plugin.cfg")
|
||||
enabled=PackedStringArray("res://addons/godot_state_charts/plugin.cfg", "res://addons/guide/plugin.cfg", "res://addons/maaacks_game_template/plugin.cfg", "res://addons/shaker/plugin.cfg")
|
||||
|
||||
[gui]
|
||||
|
||||
|
||||
@@ -1,28 +1,28 @@
|
||||
namespace Movementtests.tests;
|
||||
|
||||
using GdUnit4;
|
||||
using static GdUnit4.Assertions;
|
||||
|
||||
[TestSuite]
|
||||
public class ExampleTest
|
||||
{
|
||||
[Before]
|
||||
public void Setup() {
|
||||
// Setup suite-level shared resources, expensive setup
|
||||
}
|
||||
|
||||
[After]
|
||||
public void Cleanup() {
|
||||
// Cleanup suite-level shared resources, expensive setup
|
||||
}
|
||||
|
||||
[TestCase]
|
||||
public void StringToLower() {
|
||||
AssertString("AbcD".ToLower()).IsEqual("abcd");
|
||||
}
|
||||
|
||||
[TestCase]
|
||||
public void StringToUpper() {
|
||||
AssertString("AbcD".ToUpper()).IsEqual("ABCD");
|
||||
}
|
||||
}
|
||||
// namespace Movementtests.tests;
|
||||
//
|
||||
// using GdUnit4;
|
||||
// using static GdUnit4.Assertions;
|
||||
//
|
||||
// [TestSuite]
|
||||
// public class ExampleTest
|
||||
// {
|
||||
// [Before]
|
||||
// public void Setup() {
|
||||
// // Setup suite-level shared resources, expensive setup
|
||||
// }
|
||||
//
|
||||
// [After]
|
||||
// public void Cleanup() {
|
||||
// // Cleanup suite-level shared resources, expensive setup
|
||||
// }
|
||||
//
|
||||
// [TestCase]
|
||||
// public void StringToLower() {
|
||||
// AssertString("AbcD".ToLower()).IsEqual("abcd");
|
||||
// }
|
||||
//
|
||||
// [TestCase]
|
||||
// public void StringToUpper() {
|
||||
// AssertString("AbcD".ToUpper()).IsEqual("ABCD");
|
||||
// }
|
||||
// }
|
||||
Reference in New Issue
Block a user