-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Build .net core | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
name: Test ${{ matrix.os }} for dotnet ${{ matrix.dotnet }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
dotnet: [ '8.0.x' ] | ||
os: [ubuntu-latest, windows-latest, macOS-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: ${{ matrix.dotnet }} | ||
- name: Build with dotnet core | ||
run: dotnet build --configuration Release | ||
- name: Tests | ||
run: dotnet test DotNetDBF.Test/DotNetDBF.Test.csproj --configuration Release --no-build --no-restore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Build CrossComple .net core/.net framework Windows | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
name: Test Windows .net Framework Only | ||
runs-on: windows-2019 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup NuGet | ||
uses: NuGet/setup-nuget@v2 | ||
|
||
- name: Setup MSBuild | ||
uses: microsoft/setup-msbuild@v2 | ||
with: | ||
dotnet-version: 4.7.2 | ||
|
||
# - name: Restore Packages | ||
# run: nuget restore DotNetDBF.sln | ||
# - name: Build solution | ||
# run: msbuild DotNetDBF.sln -t:rebuild -property:Configuration=Release | ||
# - name: Run vstests | ||
# uses: microsoft/vstest-action@v1.0.0 | ||
# with: | ||
# testAssembly: Tests.dll | ||
# searchFolder: .\Tests\bin\Release\*\ | ||
# runInParallel: true | ||
# platform: x64 | ||
- name: Restore | ||
run: nuget restore DotNetDBF.sln | ||
- name: Build | ||
run: msbuild DotNetDBF.sln -t:rebuild -property:Configuration=Release | ||
- name: Test | ||
run: dotnet test --configuration Release --no-build --no-restore |