refactor: update return statement to use array spread syntax with spa… #139
This file contains hidden or 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: Chapter 3 Contracts | |
| on: | |
| push: | |
| branches: ["main"] | |
| paths: | |
| - "Chapter-3-microservice-extraction/Fitnet.Contracts/Src/**" | |
| pull_request: | |
| branches: ["main"] | |
| paths: | |
| - "Chapter-3-microservice-extraction/Fitnet.Contracts/Src/**" | |
| env: | |
| CHAPTER_DIR: "Chapter-3-microservice-extraction/Fitnet.Contracts/Src" | |
| NUGET_SOURCE_NAME: "evolutionaryArchitecture" | |
| jobs: | |
| build: | |
| defaults: | |
| run: | |
| working-directory: ${{ env.CHAPTER_DIR }} | |
| runs-on: ubuntu-latest | |
| name: Build | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v3 | |
| with: | |
| dotnet-version: 9.0.x | |
| - name: Add Evolutionary Architecture Nuget Source | |
| uses: evolutionary-architecture/evolutionary-architecture-by-example/.github@main | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| owner: ${{ github.repository_owner }} | |
| path: ${{ env.CHAPTER_DIR }} | |
| nuget-source-name: ${{ env.NUGET_SOURCE_NAME }} | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Build | |
| run: dotnet build --no-restore | |
| test: | |
| defaults: | |
| run: | |
| working-directory: ${{ env.CHAPTER_DIR }} | |
| runs-on: ubuntu-latest | |
| name: Test | |
| needs: build | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v3 | |
| with: | |
| dotnet-version: 9.0.x | |
| - name: Add Evolutionary Architecture Nuget Source | |
| uses: evolutionary-architecture/evolutionary-architecture-by-example/.github@main | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| owner: ${{ github.repository_owner }} | |
| path: ${{ env.CHAPTER_DIR }} | |
| nuget-source-name: ${{ env.NUGET_SOURCE_NAME }} | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Test | |
| run: dotnet test |