-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update build CI to use modern dotnet tooling
- Loading branch information
Showing
2 changed files
with
27 additions
and
20 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,32 +2,40 @@ name: CI-Audit | |
|
||
on: | ||
push: | ||
branches: [ main ] | ||
# This prevents tag pushes from triggering this workflow | ||
branches: ['*'] | ||
pull_request: | ||
branches: [ main ] | ||
workflow_dispatch: | ||
|
||
env: | ||
DOTNET_NOLOGO: true | ||
DOTNET_CLI_TELEMETRY_OPTOUT: true | ||
DOTNET_GENERATE_ASPNET_CERTIFICATE: false | ||
ContinuousIntegrationBuild: true | ||
jobs: | ||
audit: | ||
runs-on: windows-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
configuration: [debug, release] | ||
os: [ubuntu-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Setup MSBuild | ||
uses: microsoft/setup-msbuild@v1 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup VSTest | ||
uses: darenm/Setup-VSTest@v1 | ||
|
||
- name: Setup NuGet | ||
uses: NuGet/[email protected] | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 8.x | ||
|
||
- name: Restore NuGet Packages | ||
run: nuget restore src/Aeon.sln | ||
- name: Restore | ||
run: dotnet restore | ||
|
||
- name: Build Project | ||
run: msbuild src/Aeon.sln /p:Configuration=Release | ||
- name: Build | ||
run: dotnet build --no-restore --configuration ${{ matrix.configuration }} | ||
|
||
- name: Pack | ||
run: dotnet pack --no-restore --no-build --configuration ${{ matrix.configuration }} | ||
|
||
- name: Run Tests | ||
run: vstest.console.exe src/Aeon.Tests/bin/Release/net472/Aeon.Tests.dll | ||
- name: Test | ||
run: dotnet test --no-restore --no-build --configuration ${{ matrix.configuration }} |
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