fix: Serializing dictionary with ', ", . in key & #37 #155
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
name: .NET | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 7.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Test | |
run: dotnet test --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:CoverletOutput='./lcov.info' /p:ExcludeByAttribute="Tomlet.Attributes.NoCoverageAttribute" | |
- name: Upload test coverage | |
uses: coverallsapp/github-action@1.1.3 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: ./Tomlet.Tests/lcov.info | |
- name: Build | |
run: dotnet build -c Release | |
- name: Upload NuGet Artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Tomlet.nupkg | |
path: Tomlet/bin/Release/*.nupkg | |
- name: Upload to NuGet | |
if: contains(github.event.head_commit.message, '[publish]') == true && github.event_name == 'push' | |
env: | |
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} | |
run: dotnet nuget push ./Tomlet/bin/Release/*.nupkg -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY |