|
22 | 22 | strategy: |
23 | 23 | fail-fast: false |
24 | 24 | matrix: |
25 | | - os: [ubuntu-latest, windows-latest] # macos-latest removed due to env error |
| 25 | + os: [ubuntu-latest, macos-latest, windows-latest] |
26 | 26 | runs-on: ${{ matrix.os }} |
27 | 27 |
|
28 | 28 | steps: |
@@ -63,45 +63,37 @@ jobs: |
63 | 63 |
|
64 | 64 | - name: 🧪 Run unit tests |
65 | 65 | run: | |
66 | | - dotnet test ./tests/bunit.core.tests/bunit.core.tests.csproj -c release --blame-hang --blame-hang-timeout 1m --blame-hang-dump-type none |
67 | | - dotnet test ./tests/bunit.web.tests/bunit.web.tests.csproj -c release --blame-hang --blame-hang-timeout 1m --blame-hang-dump-type none |
68 | | - dotnet test ./tests/bunit.web.testcomponents.tests/bunit.web.testcomponents.tests.csproj -c release --blame-hang --blame-hang-timeout 1m --blame-hang-dump-type none |
| 66 | + dotnet test ./tests/bunit.core.tests/bunit.core.tests.csproj -c release --blame-hang --blame-hang-timeout 1m --blame-hang-dump-type full |
| 67 | + dotnet test ./tests/bunit.web.tests/bunit.web.tests.csproj -c release --blame-hang --blame-hang-timeout 1m --blame-hang-dump-type full |
| 68 | + dotnet test ./tests/bunit.web.testcomponents.tests/bunit.web.testcomponents.tests.csproj -c release --blame-hang --blame-hang-timeout 1m --blame-hang-dump-type full |
69 | 69 |
|
70 | 70 | - name: 🗳️ Pack library |
71 | 71 | run: | |
72 | 72 | dotnet pack -c release -o ${GITHUB_WORKSPACE}/packages -p:ContinuousIntegrationBuild=true |
73 | 73 | dotnet pack src/bunit/ -c release -o ${GITHUB_WORKSPACE}/packages -p:ContinuousIntegrationBuild=true |
74 | 74 | dotnet pack src/bunit.template/ -c release -o ${GITHUB_WORKSPACE}/packages -p:ContinuousIntegrationBuild=true |
75 | | -
|
76 | | - - name: ✳ Install bUnit template |
77 | | - if: matrix.os != 'windows-latest' |
78 | | - run: | |
79 | | - dotnet new --install bunit.template::${NBGV_NuGetPackageVersion} --nuget-source ${GITHUB_WORKSPACE}/packages |
80 | 75 | |
81 | 76 | # Excluding windows because the restore step doesnt seem to work correct. |
82 | 77 | - name: ✔ Verify xUnit template |
83 | | - if: matrix.os != 'windows-latest' |
84 | 78 | run: | |
85 | 79 | dotnet new bunit --no-restore -o ${GITHUB_WORKSPACE}/TemplateTestXunit |
86 | 80 | echo '<?xml version="1.0" encoding="utf-8"?><Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"></Project>' >> ${GITHUB_WORKSPACE}/TemplateTestXunit/Directory.Build.props |
87 | 81 | dotnet restore ${GITHUB_WORKSPACE}/TemplateTestXunit --source ${GITHUB_WORKSPACE}/packages --source https://api.nuget.org/v3/index.json |
88 | | - dotnet test ${GITHUB_WORKSPACE}/TemplateTestXunit --blame-hang --blame-hang-timeout 1m --blame-hang-dump-type none |
| 82 | + dotnet test ${GITHUB_WORKSPACE}/TemplateTestXunit --blame-hang --blame-hang-timeout 1m --blame-hang-dump-type full |
89 | 83 |
|
90 | 84 | - name: ✔ Verify NUnit template |
91 | | - if: matrix.os != 'windows-latest' |
92 | 85 | run: | |
93 | 86 | dotnet new bunit --framework nunit --no-restore -o ${GITHUB_WORKSPACE}/TemplateTestNunit |
94 | 87 | echo '<?xml version="1.0" encoding="utf-8"?><Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"></Project>' >> ${GITHUB_WORKSPACE}/TemplateTestNunit/Directory.Build.props |
95 | 88 | dotnet restore ${GITHUB_WORKSPACE}/TemplateTestNunit --source ${GITHUB_WORKSPACE}/packages --source https://api.nuget.org/v3/index.json |
96 | | - dotnet test ${GITHUB_WORKSPACE}/TemplateTestNunit --blame-hang --blame-hang-timeout 1m --blame-hang-dump-type none |
| 89 | + dotnet test ${GITHUB_WORKSPACE}/TemplateTestNunit --blame-hang --blame-hang-timeout 1m --blame-hang-dump-type full |
97 | 90 |
|
98 | 91 | - name: ✔ Verify MSTest template |
99 | | - if: matrix.os != 'windows-latest' |
100 | 92 | run: | |
101 | 93 | dotnet new bunit --framework mstest --no-restore -o ${GITHUB_WORKSPACE}/TemplateTestMstest |
102 | 94 | echo '<?xml version="1.0" encoding="utf-8"?><Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"></Project>' >> ${GITHUB_WORKSPACE}/TemplateTestMstest/Directory.Build.props |
103 | 95 | dotnet restore ${GITHUB_WORKSPACE}/TemplateTestMstest --source ${GITHUB_WORKSPACE}/packages --source https://api.nuget.org/v3/index.json |
104 | | - dotnet test ${GITHUB_WORKSPACE}/TemplateTestMstest --blame-hang --blame-hang-timeout 1m --blame-hang-dump-type none |
| 96 | + dotnet test ${GITHUB_WORKSPACE}/TemplateTestMstest --blame-hang --blame-hang-timeout 1m --blame-hang-dump-type full |
105 | 97 |
|
106 | 98 | # DocFx only works well on Windows currently |
107 | 99 | - name: 📄 Build documentation |
|
0 commit comments