Skip to content

Commit e7bbf7e

Browse files
ctardyclaude
andcommitted
Fix release workflow and test runner for CI
- Add test step to release workflow (build + test before packaging) - Include NoteTab.cs, TabStore.cs, TabStoreTests.cs in test compilation - Fix test.cmd execution path (.\LockNote.Tests.exe) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 9ef1537 commit e7bbf7e

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,14 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v4
1515

16-
- name: Build with csc.exe
16+
- name: Build
1717
shell: cmd
1818
run: build.cmd
1919

20+
- name: Run tests
21+
shell: cmd
22+
run: test.cmd
23+
2024
- name: Show output
2125
shell: bash
2226
run: ls -la LockNote.exe

test.cmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
echo Running LockNote tests...
33
echo.
44

5-
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe /target:exe /platform:x64 /optimize+ /out:LockNote.Tests.exe src\Crypto.cs src\Storage.cs src\Settings.cs tests\TestFramework.cs tests\CryptoTests.cs tests\SettingsTests.cs tests\StorageTests.cs tests\TestMain.cs
5+
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe /target:exe /platform:x64 /optimize+ /out:LockNote.Tests.exe src\Crypto.cs src\Storage.cs src\Settings.cs src\NoteTab.cs src\TabStore.cs tests\TestFramework.cs tests\CryptoTests.cs tests\SettingsTests.cs tests\StorageTests.cs tests\TabStoreTests.cs tests\TestMain.cs
66

77
if %ERRORLEVEL% NEQ 0 (
88
echo.
@@ -11,7 +11,7 @@ if %ERRORLEVEL% NEQ 0 (
1111
)
1212

1313
echo.
14-
LockNote.Tests.exe
14+
.\LockNote.Tests.exe
1515
set RESULT=%ERRORLEVEL%
1616

1717
del LockNote.Tests.exe 2>nul

0 commit comments

Comments
 (0)