From 873cba90ee1fc0e6d70b6a4b3b06b84f3df20215 Mon Sep 17 00:00:00 2001 From: kruplm <73655443+kruplm@users.noreply.github.com> Date: Thu, 29 Jun 2023 11:47:58 +0200 Subject: [PATCH] Build JavaScript Before .Net --- .../continuous-integration-prototypes.yml | 29 +++++++++---------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/.github/workflows/continuous-integration-prototypes.yml b/.github/workflows/continuous-integration-prototypes.yml index 57efce21d..5974e2132 100644 --- a/.github/workflows/continuous-integration-prototypes.yml +++ b/.github/workflows/continuous-integration-prototypes.yml @@ -25,20 +25,6 @@ jobs: node-version: [ '18.x' ] steps: - uses: actions/checkout@v3 - - name: Setup .NET Core SDK ${{ matrix.dotnet-version }} - uses: actions/setup-dotnet@v2 - with: - dotnet-version: ${{ matrix.dotnet-version }} - - name: Install Nuget dependencies - run: Get-ChildItem -Recurse -Include *.sln | ForEach-Object {dotnet restore $_} - - - name: Build .Net - run: Get-ChildItem -Recurse -Include *.sln | ForEach-Object {dotnet build $_ --configuration Release --no-restore; if ($LASTEXITCODE -ne 0 ) {throw "Build for $_ FAILED"; }} - - - name: Test .Net - run: Get-ChildItem -Recurse -Include *.sln | ForEach-Object {dotnet test $_ --configuration Release --no-restore --verbosity normal --collect:"XPlat Code Coverage"} - - - name: Setup Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: @@ -49,10 +35,23 @@ jobs: - name: Build JavaScript run: npx lerna run build - + - name: Test JavaScript run: npx lerna run test + - name: Setup .NET Core SDK ${{ matrix.dotnet-version }} + uses: actions/setup-dotnet@v2 + with: + dotnet-version: ${{ matrix.dotnet-version }} + - name: Install Nuget dependencies + run: Get-ChildItem -Recurse -Include *.sln | ForEach-Object {dotnet restore $_} + + - name: Build .Net + run: Get-ChildItem -Recurse -Include *.sln | ForEach-Object {dotnet build $_ --configuration Release --no-restore; if ($LASTEXITCODE -ne 0 ) {throw "Build for $_ FAILED"; }} + + - name: Test .Net + run: Get-ChildItem -Recurse -Include *.sln | ForEach-Object {dotnet test $_ --configuration Release --no-restore --verbosity normal --collect:"XPlat Code Coverage"} + - name: Codecov uses: codecov/codecov-action@v3.0.0