mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-10-16 23:49:19 +02:00
Run the tests before building the packages
This commit is contained in:
37
.github/workflows/dotnet.yml
vendored
37
.github/workflows/dotnet.yml
vendored
@@ -20,11 +20,48 @@ env:
|
||||
DOTNET_CLI_TELEMETRY_OPTOUT: 1
|
||||
DOTNET_NOLOGO: true
|
||||
PROJECT_PATH: StarterNG/StarterNG.csproj
|
||||
TEST_PROJECT_PATH: StarterNG.Tests/StarterNG.Tests.csproj
|
||||
|
||||
jobs:
|
||||
# On both systems the packages are built for: paths, encodings and the file
|
||||
# system differ, and that is where these tests earn their keep.
|
||||
test:
|
||||
name: Tests (${{ matrix.name }})
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- name: Windows x64
|
||||
os: windows-2022
|
||||
|
||||
- name: Linux x64
|
||||
os: ubuntu-22.04
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v7
|
||||
|
||||
- name: Setup .NET 9
|
||||
uses: actions/setup-dotnet@v6
|
||||
with:
|
||||
dotnet-version: 9.0.x
|
||||
|
||||
- name: Test
|
||||
run: >
|
||||
dotnet test
|
||||
"${{ env.TEST_PROJECT_PATH }}"
|
||||
-c Release
|
||||
|
||||
publish:
|
||||
name: ${{ matrix.name }}
|
||||
|
||||
# A failing test stops the packages, and with them the rolling pre-release.
|
||||
needs: test
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user