Skip to content

Commit

Permalink
Moved SRC and Test folders to root directory.
Browse files Browse the repository at this point in the history
Refactored static ReadLine class to a true singleton.
Changed unit tests to use NUnit instead of XUnit.
Fixed Ctrl+C issue #59 (Add option to return CTRL+C)
Updated version.
  • Loading branch information
Latency committed Mar 18, 2020
2 parents f734a8a + f531195 commit ac6c798
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 8 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
@@ -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
Binary file modified Artifacts/ReadLine.2.1.3.nupkg
Binary file not shown.
6 changes: 3 additions & 3 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion test.ps1
Original file line number Diff line number Diff line change
@@ -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) }
2 changes: 1 addition & 1 deletion test.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

dotnet test ./test/ReadLine.Tests
dotnet test ./ReadLine.Tests

0 comments on commit ac6c798

Please sign in to comment.