-
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.
Merge pull request #42 from ekonbenefits/build-stuff
- Loading branch information
Showing
10 changed files
with
86 additions
and
18 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, 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,29 @@ | ||
name: .net framework Windows | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
name: Test Windows .net Framework Only | ||
runs-on: windows-2022 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: NuGet/setup-nuget@v2 | ||
- uses: microsoft/setup-msbuild@v2 | ||
with: | ||
dotnet-version: 4.7.2 | ||
|
||
- name: Restore | ||
run: nuget restore DotNetDBF.sln | ||
- name: Build | ||
run: msbuild DotNetDBF.sln -t:rebuild -property:Configuration=Release | ||
- name: Test | ||
uses: josepho0918/vstest-action@0e887de8dcfab5ce3eecaf4ad6320bb9b3ecf633 | ||
with: | ||
testAssembly: DotNetDBF.Test.dll | ||
searchFolder: .\DotNetDBF.Test\bin\Release\*\ | ||
runInParallel: true | ||
platform: x64 | ||
- name: Publish | ||
run: | ||
dotnet nuget push '${{ github.workspace }}\publish\*.nupkg' --source https://nuget.pkg.github.com/ekonbenefits/index.json --api-key ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
bin | ||
obj | ||
/packages | ||
/publish | ||
|
||
*.suo | ||
|
||
*.user | ||
.idea/* | ||
.vs/* | ||
.vs/* |
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,6 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<VersionPrefix>7.0.1</VersionPrefix> | ||
<VersionSuffix Condition=" '$(GITHUB_RUN_NUMBER)' != '' ">preview$(GITHUB_RUN_NUMBER)</VersionSuffix> | ||
</PropertyGroup> | ||
</Project> |
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,8 @@ | ||
<Project> | ||
<Target Name="CopyPackage" AfterTargets="Pack"> | ||
<Copy | ||
SourceFiles="$(OutputPath)$(PackageId).$(PackageVersion).nupkg" | ||
DestinationFolder="$(SolutionDir)\publish" | ||
/> | ||
</Target> | ||
</Project> |
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
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
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
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
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