Specifying UTC in JSON test - #496 #687
Workflow file for this run
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: Test | |
on: | |
push: | |
branches-ignore: | |
- 'main' | |
tags-ignore: | |
- '**' | |
paths: | |
- '.github/workflows/test.yml' | |
- 'Directory.Packages.props' | |
- 'src/**' | |
- 'tests/**' | |
workflow_dispatch: | |
jobs: | |
restore-build-test: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Prepare - Checkout Code | |
uses: actions/checkout@v4 | |
- | |
name: Prepare - Read Version | |
uses: bfren/read-file@v2 | |
with: | |
file: ./Version | |
id: version | |
- | |
name: Prepare - Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: | | |
8.0.x | |
- | |
name: Prepare - Output versions | |
run: | | |
echo ".NET" | |
dotnet --version | |
dotnet nuget --version | |
dotnet msbuild --version | |
- | |
name: A - Restore | |
run: | | |
dotnet restore Test.csproj | |
- | |
name: B - Build | |
run: | | |
dotnet build Test.csproj \ | |
--no-restore \ | |
--configuration Test | |
- | |
name: C - Test | |
run: | | |
dotnet test Test.csproj \ | |
--no-restore \ | |
--no-build \ | |
--configuration Test | |
- | |
if: success() | |
name: Finish - Success | |
uses: bfren/action-slack-notify@master | |
env: | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
SLACK_USERNAME: Jeebs (GitHub) | |
SLACK_MESSAGE: Tests Passed | |
SLACK_COLOR: good | |
SLACK_ICON: https://bfren.dev/img/logo-square-500x500.jpg | |
- | |
if: failure() | |
name: Finish - Failure | |
uses: bfren/action-slack-notify@master | |
env: | |
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
SLACK_USERNAME: Jeebs (GitHub) | |
SLACK_MESSAGE: Test Failed | |
SLACK_COLOR: danger | |
SLACK_ICON: https://bfren.dev/img/logo-square-500x500.jpg |