diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml new file mode 100644 index 0000000..d2c8b73 --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -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 diff --git a/.github/workflows/dotnet48.yml b/.github/workflows/dotnet48.yml new file mode 100644 index 0000000..7d5c896 --- /dev/null +++ b/.github/workflows/dotnet48.yml @@ -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: dotnet restore -p:TargetFramework=net472 + - name: Build + run: dotnet build -t:rebuild -property:Configuration=Release;TargetFramework=net472 + - name: Test + run: dotnet test --configuration Release --no-build --no-restore