Skip to content

refactor: change the way how date time is handled in reports #35

refactor: change the way how date time is handled in reports

refactor: change the way how date time is handled in reports #35

name: Chapter 2 workflow
on:
push:
branches: [ "main" ]
paths:
- 'Chapter-2-modules-separation/**'
pull_request:
branches: [ "main" ]
paths:
- 'Chapter-2-modules-separation/**'
env:
CHAPTER_DIR: 'Chapter-2-modules-separation'
jobs:
build:
defaults:
run:
working-directory: ${{ env.CHAPTER_DIR }}/Src
runs-on: ubuntu-latest
name: Build
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
test:
defaults:
run:
working-directory: ${{ env.CHAPTER_DIR }}/Src
runs-on: ubuntu-latest
name: Test
needs: build
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Test
run: dotnet test