Skip to content

Fix floating point rounding error in FormatTime #83

Fix floating point rounding error in FormatTime

Fix floating point rounding error in FormatTime #83

Workflow file for this run

name: Build and Test
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
jobs:
build:
strategy:
fail-fast: false
matrix:
platform:
- {os: windows-latest, framework: net7.0-windows, runtime: win-x64}
- {os: ubuntu-latest, framework: net7.0, runtime: linux-x64}
build_type:
- {
name: 'Build',
configuration: Debug,
command: 'dotnet build ConsoleApp --no-self-contained',
}
- {
name: 'Publish to single file',
configuration: Release,
command: 'dotnet publish ConsoleApp -p:PublishSingleFile=true --self-contained',
}
- {
name: 'Run tests',
configuration: Release,
command: 'dotnet test --logger "console;verbosity=detailed"',
}
runs-on: ${{ matrix.platform.os }}
name: ${{ matrix.build_type.name }} (${{ matrix.build_type.configuration }}, ${{ matrix.platform.os }}
steps:
- name: Checkout Project
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: ${{ matrix.build_type.name }}
run: >
${{ matrix.build_type.command }}
--framework=${{ matrix.platform.framework }}
--runtime=${{ matrix.platform.runtime }}
--configuration=${{ matrix.build_type.configuration }}