Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions .github/workflows/build-validation.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build
name: "Build"

on:
pull_request:
Expand All @@ -12,24 +12,32 @@ on:
workflow_dispatch:

env:
DOTNET_VERSION: "10.0.x" # The .NET SDK version to use
DOTNET_VERSION: "10.0.x"

jobs:
build:
name: build
runs-on: ubuntu-latest
runs-on: windows-latest

steps:
- uses: actions/checkout@v5
- name: Setup .NET Core

- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
cache: true
cache-dependency-path: "**/packages.lock.json"

- name: Install dependencies
- name: Restore dependencies
run: dotnet restore --locked-mode

- name: Build
- name: Build projects
run: dotnet build --configuration Release --no-restore

- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: build-output
path: |
**/bin/Release/**
38 changes: 38 additions & 0 deletions .github/workflows/integrations-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: "Integration tests"

on:
workflow_run:
workflows: ["Build"]
types:
- completed

env:
DOTNET_VERSION: "10.0.x"

jobs:
integration-tests:
name: "Integration tests"
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: windows-latest

steps:
- uses: actions/checkout@v5

- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: build-output
path: ./bin/Release

- name: Run integration tests
run: >
dotnet test tests/IntegrationTests/IntegrationTests.csproj
--configuration Release
--no-restore
--no-build
--verbosity normal
38 changes: 0 additions & 38 deletions .github/workflows/test-validation.yml

This file was deleted.

46 changes: 46 additions & 0 deletions .github/workflows/unit-and-architecture-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: "Unit tests"

on:
workflow_run:
workflows: ["Build"]
types:
- completed

env:
DOTNET_VERSION: "10.0.x"

jobs:
unit-tests:
name: "Unit and architecture tests"
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: windows-latest

steps:
- uses: actions/checkout@v5

- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: build-output
path: ./bin/Release

- name: Run unit tests
run: >
dotnet test tests/UnitTests/UnitTests.csproj
--configuration Release
--no-restore
--no-build
--verbosity normal

- name: Run architecture tests
run: >
dotnet test tests/ArchitectureTests/ArchitectureTests.csproj
--configuration Release
--no-restore
--no-build
--verbosity normal