diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml new file mode 100644 index 0000000..d243b1f --- /dev/null +++ b/.github/workflows/dotnetcore.yml @@ -0,0 +1,21 @@ +name: .NET Core + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Setup .NET Core + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 3.1.101 + - name: Build with dotnet + run: dotnet build --configuration Release diff --git a/Artifacts/ReadLine.2.1.3.nupkg b/Artifacts/ReadLine.2.1.3.nupkg index f73310b..1bde931 100644 Binary files a/Artifacts/ReadLine.2.1.3.nupkg and b/Artifacts/ReadLine.2.1.3.nupkg differ diff --git a/build.ps1 b/build.ps1 index 9334024..7afc25a 100644 --- a/build.ps1 +++ b/build.ps1 @@ -3,6 +3,6 @@ param( ) dotnet restore -dotnet build ".\src\ReadLine" -c $p1 -dotnet build ".\src\ReadLine.Demo" -c $p1 -dotnet build ".\test\ReadLine.Tests" -c $p1 +dotnet build ".\ReadLine" -c $p1 +dotnet build ".\ReadLine.Demo" -c $p1 +dotnet build ".\ReadLine.Tests" -c $p1 diff --git a/build.sh b/build.sh index f697f1d..1968d73 100755 --- a/build.sh +++ b/build.sh @@ -9,6 +9,6 @@ if [[ $1 ]]; then fi dotnet restore -dotnet build ./src/ReadLine -c $CONFIGURATION -dotnet build ./src/ReadLine.Demo -c $CONFIGURATION -dotnet build ./test/ReadLine.Tests -c $CONFIGURATION +dotnet build ./ReadLine -c $CONFIGURATION +dotnet build ./ReadLine.Demo -c $CONFIGURATION +dotnet build ./ReadLine.Tests -c $CONFIGURATION diff --git a/test.ps1 b/test.ps1 index e19f256..0233801 100644 --- a/test.ps1 +++ b/test.ps1 @@ -1,2 +1,2 @@ -dotnet test .\test\ReadLine.Tests\ReadLine.Tests.csproj +dotnet test .\ReadLine.Tests\ReadLine.Tests.csproj if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) } \ No newline at end of file diff --git a/test.sh b/test.sh index 6d26b09..e9e4824 100755 --- a/test.sh +++ b/test.sh @@ -1,3 +1,3 @@ #!/usr/bin/env bash -dotnet test ./test/ReadLine.Tests +dotnet test ./ReadLine.Tests