test build 2

This commit is contained in:
2026-04-05 01:01:52 -04:00
parent 3b7e752f2b
commit 131cc96635

View File

@@ -1,26 +1,42 @@
name: testing name: Validate dotnet
on:
- push
- pull_request
env: on:
ASPNETCORE_ENVIRONMENT: Production pull_request:
paths-ignore:
- '**.md'
push:
branches:
- main
- releases/*
paths-ignore:
- '**.md'
jobs: jobs:
testing: setup-version:
name: check and test runs-on: ${{ matrix.operating-system }}
runs-on: ubuntu-latest 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: 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: with:
fetch-depth: 0 # all history for all branches and tags dotnet-version: ${{ matrix.dotnet-version }}
- name: Setup .NET Core - name: Verify installed version
uses: actions/setup-dotnet@v4 shell: pwsh
with: run: |
dotnet-version: 8.0.x __tests__/verify-dotnet.ps1 -Patterns "^${{ matrix.dotnet-version }}"
- 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