forked from tspence/csharp-csv-reader
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more precise tests for CR/LF characters (tspence#60)
Fix issues with inconsistent CRLF handling with buffered reading rather than line-by-line reading. Add more tests and automate deployment.
- Loading branch information
Showing
12 changed files
with
222 additions
and
58 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,48 @@ | ||
name: NuGet Publish | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: Update NuGet package | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v1 | ||
|
||
- name: Setup .NET Core @ Latest | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: | | ||
5.0.x | ||
6.0.x | ||
7.0.x | ||
- name: Build (Framework 2.0) | ||
run: msbuild ./src/net20/src.net20.csproj /property:Configuration=Release | ||
- name: Build (Framework 4.0) | ||
run: msbuild ./src/net40/src.net40.csproj /property:Configuration=Release | ||
- name: Build (Framework 4.5) | ||
run: msbuild ./src/net45/src.net45.csproj /property:Configuration=Release | ||
- name: Build (DotNetCore 5.0) | ||
run: dotnet build -c Release ./src/net50/src.net50.csproj | ||
- name: Build (NetStandard 2.0) | ||
run: dotnet build -c Release ./src/netstandard20/src.netstandard20.csproj | ||
|
||
- name: Setup Nuget | ||
uses: nuget/setup-nuget@v1 | ||
with: | ||
nuget-api-key: ${{ secrets.NUGET_API_KEY }} | ||
nuget-version: "5.x" | ||
|
||
- name: Run Nuget pack | ||
run: nuget pack CSVFile.nuspec | ||
|
||
- name: Push generated package to GitHub registry | ||
if: github.ref == 'refs/heads/main' && github.event_name == 'push' | ||
run: nuget push *.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}} |
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
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
Oops, something went wrong.