From 131cc96635e537aca07c0045e03bb731c60278e4 Mon Sep 17 00:00:00 2001 From: ronnie Date: Sun, 5 Apr 2026 01:01:52 -0400 Subject: [PATCH] test build 2 --- .gitea/workflows/test.yml | 58 +++++++++++++++++++++++++-------------- 1 file changed, 37 insertions(+), 21 deletions(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 55626d3..96985dc 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -1,26 +1,42 @@ -name: testing -on: - - push - - pull_request +name: Validate dotnet -env: - ASPNETCORE_ENVIRONMENT: Production +on: + pull_request: + paths-ignore: + - '**.md' + push: + branches: + - main + - releases/* + paths-ignore: + - '**.md' jobs: - testing: - name: check and test - runs-on: ubuntu-latest + setup-version: + runs-on: ${{ matrix.operating-system }} + strategy: + fail-fast: false + matrix: + operating-system: + [ + ubuntu-latest, + ubuntu-22.04, + windows-latest, + macos-15-intel, + macos-latest + ] + dotnet-version: ['8.0', '9.0', '10.0'] steps: - - uses: actions/checkout@v4 + - name: Checkout + uses: actions/checkout@v6 + - name: Clear toolcache + shell: pwsh + run: __tests__/clear-toolcache.ps1 ${{ runner.os }} + - name: Setup dotnet ${{ matrix.dotnet-version }} + uses: ./ with: - fetch-depth: 0 # all history for all branches and tags - - name: Setup .NET Core - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - name: dotnet restore - run: dotnet restore - - name: dotnet build - run: dotnet build --no-restore -c Release - - name: dotnet test - run: dotnet test --no-build --no-restore -c Release --verbosity normal \ No newline at end of file + dotnet-version: ${{ matrix.dotnet-version }} + - name: Verify installed version + shell: pwsh + run: | + __tests__/verify-dotnet.ps1 -Patterns "^${{ matrix.dotnet-version }}"