File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Test UnityDataTools
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ branches :
7+ - main
8+ pull_request :
9+ branches :
10+ - main
11+
12+ jobs :
13+ test :
14+ strategy :
15+ matrix :
16+ os : [windows, macos]
17+ arch : [x64, arm64]
18+ exclude :
19+ - os : windows
20+ arch : arm64
21+ - os : macos
22+ arch : x64
23+ fail-fast : false
24+
25+ runs-on : ${{ matrix.os }}-latest
26+
27+ steps :
28+ - name : Checkout repository
29+ uses : actions/checkout@v4
30+
31+ - name : Setup .NET
32+ uses : actions/setup-dotnet@v4
33+ with :
34+ dotnet-version : 9.0.x
35+
36+ - name : Restore dependencies
37+ run : dotnet restore
38+
39+ - name : Build solution
40+ run : dotnet build -c Release --no-restore
41+
42+ - name : Run UnityFileSystem.Tests
43+ run : dotnet test UnityFileSystem.Tests/UnityFileSystem.Tests.csproj -c Release --no-build --verbosity normal --logger "trx;LogFileName=UnityFileSystem.Tests.trx"
44+
45+ - name : Run Analyzer.Tests
46+ run : dotnet test Analyzer.Tests/Analyzer.Tests.csproj -c Release --no-build --verbosity normal --logger "trx;LogFileName=Analyzer.Tests.trx"
47+
48+ - name : Run UnityDataTool.Tests
49+ run : dotnet test UnityDataTool.Tests/UnityDataTool.Tests.csproj -c Release --no-build --verbosity normal --logger "trx;LogFileName=UnityDataTool.Tests.trx"
50+
51+ - name : Upload test results
52+ if : always()
53+ uses : actions/upload-artifact@v4
54+ with :
55+ name : test-results-${{ matrix.os }}-${{ matrix.arch }}
56+ path : |
57+ **/TestResults/*.trx
58+ retention-days : 30
You can’t perform that action at this time.
0 commit comments