Skip to content

Commit

Permalink
Merge branch 'main' into batch-upsert-sqlserver-1
Browse files Browse the repository at this point in the history
  • Loading branch information
dluc authored May 17, 2024
2 parents 440f946 + aa92ec4 commit cb14c61
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 13 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/dotnet-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ on:
- 'feature*'
- 'dev'
paths:
- '*.cs'
- '*.csproj'
- '*.sln'
- '**.cs'
- '**.csproj'
- '**.sln'
- 'appsettings.json'

concurrency:
Expand All @@ -22,8 +22,10 @@ permissions:

jobs:
dotnet-build:
name: Build
strategy:
fail-fast: false
max-parallel: 2
matrix:
include:
- { dotnet: "8.0.x", os: "ubuntu-latest", configuration: Debug }
Expand All @@ -32,11 +34,14 @@ jobs:
steps:
- name: Check out source
uses: actions/checkout@v4
- name: Setup dotnet ${{ matrix.dotnet}}

- name: Setup .NET ${{ matrix.dotnet}}
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Display dotnet version

- name: Display .NET version
run: dotnet --version
- name: Build dotnet solution

- name: Build solution
run: dotnet build KernelMemory.sln -c ${{ matrix.configuration }} /warnaserror
21 changes: 15 additions & 6 deletions .github/workflows/dotnet-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ on:
- 'feature*'
- 'dev'
paths:
- '*.cs'
- '*.csproj'
- '*.sln'
- '**.cs'
- '**.csproj'
- '**.sln'
- 'appsettings.json'
schedule:
- cron: '55 0 * * 0'

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand All @@ -22,8 +24,10 @@ permissions:

jobs:
dotnet-test:
name: Unit Tests
strategy:
fail-fast: false
max-parallel: 2
matrix:
include:
- { dotnet: "8.0.x", os: "ubuntu-latest" }
Expand All @@ -32,16 +36,21 @@ jobs:
steps:
- name: Check out source
uses: actions/checkout@v4
- name: Setup dotnet ${{ matrix.dotnet }}

- name: Setup .NET ${{ matrix.dotnet }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Display dotnet version

- name: Display .NET version
run: dotnet --version
- name: Build dotnet solution

- name: Build solution
run: dotnet build KernelMemory.sln -c Debug --nologo

- name: Run Unit Tests
run: dotnet test KernelMemory.sln -c Debug --filter Category=UnitTest -v q -l html --results-directory "TestResults-${{ matrix.os }}-${{ matrix.dotnet }}" --nologo --no-build

- name: Upload test results
uses: actions/upload-artifact@v4
with:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/spell-check-with-typos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ name: Spell Check
on:
workflow_dispatch:
pull_request:
branches: [ "main", "feature*" ]
branches:
- 'main'
- 'feature*'
- 'dev'

jobs:
run:
Expand Down

0 comments on commit cb14c61

Please sign in to comment.