Update and rename dotnet.yml to Tests.yml #1
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: Tests | |
on: | |
push: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Setup .NET | |
uses: actions/[email protected] | |
with: | |
dotnet-version: 8.0.x | |
- name: Restore dependencies for Catalog app | |
run: dotnet restore ./crs/Services/Catalog/Catalog.App/Catalog.App.sln | |
- name: Build Catalog app | |
run: dotnet build ./crs/Services/Catalog/Catalog.App/Catalog.App.sln --no-restore | |
- name: Unit test Catalog app | |
run: dotnet build ./tests/Catalog.UnitTests/Catalog.UnitTests.csproj --no-restore | |
- name: Restore dependencies for Identity app | |
run: dotnet restore ./crs/Services/Catalog/Identity.App/Identity.App.sln | |
- name: Build Identity app | |
run: dotnet build ./crs/Services/Identity/Identity.App/Identity.App.sln --no-restore | |
- name: Unit test Identity app | |
run: dotnet build ./tests/Identity.UnitTests/Identity.UnitTests.csproj --no-restore |