fixed default float formatting for displaying elapsed miliseconds. #6
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" ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: 6.0.x | |
- name: Restore dependencies | |
run: dotnet restore ./src/ | |
- name: Build | |
run: dotnet build ./src/ --no-restore | |
- name: Test | |
run: dotnet test ./src/ --no-build --verbosity normal | |
publish: | |
needs: build | |
runs-on: ubuntu-latest | |
environment: nuget | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: 6.0.x | |
- name: Build | |
run: dotnet pack --configuration Release ./src/ -o ./ | |
- name: Publish | |
env: | |
API_KEY: ${{ secrets.NUGET_API_KEY }} | |
run: dotnet nuget push --api-key $API_KEY --source https://api.nuget.org/v3/index.json *.nupkg | |