Skip to content

Commit 02bcc69

Browse files
committed
[CI] Add test job
1 parent b487b82 commit 02bcc69

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,11 @@ jobs:
2525
secrets: inherit
2626
with:
2727
build-type: Debug
28+
29+
Windows-Tests:
30+
needs: Setup
31+
uses: ./.github/workflows/test-windows.yml
32+
secrets: inherit
33+
with:
34+
build-type: Release
35+
test-category: Simple

.github/workflows/test-windows.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Test (Windows)
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
build-type:
7+
description: Build in Release or Debug?
8+
required: true
9+
default: Release
10+
type: choice
11+
options:
12+
- Debug
13+
- Release
14+
test-category:
15+
description: Which category of tests?
16+
required: false
17+
default: Simple
18+
type: choice
19+
options:
20+
- Simple
21+
- Game
22+
- VSPackage
23+
workflow_call:
24+
inputs:
25+
build-type:
26+
required: true
27+
default: Release
28+
type: string
29+
test-category:
30+
required: false
31+
default: Simple
32+
type: string
33+
34+
jobs:
35+
#
36+
# Test Stride on Windows
37+
#
38+
Windows:
39+
name: Test (${{ github.event.inputs.test-category || inputs.test-category }}, ${{ github.event.inputs.build-type || inputs.build-type }})
40+
runs-on: windows-latest
41+
steps:
42+
- uses: actions/checkout@v4
43+
with:
44+
lfs: true
45+
- uses: actions/setup-dotnet@v4
46+
with:
47+
dotnet-version: '8.0.x'
48+
- uses: microsoft/setup-msbuild@v2
49+
- name: Build Stride
50+
run: msbuild build\Stride.build -t:RunTestsWindows -m:1 -nr:false -v:m -p:Configuration=${{ github.event.inputs.build-type || inputs.build-type }} -p:StrideTestCategories=${{ github.event.inputs.test-category || inputs.test-category }} -p:WarningLevel=0 -p:StrideSkipAutoPack=true

0 commit comments

Comments
 (0)