test build 2
This commit is contained in:
@@ -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
|
||||
dotnet-version: ${{ matrix.dotnet-version }}
|
||||
- name: Verify installed version
|
||||
shell: pwsh
|
||||
run: |
|
||||
__tests__/verify-dotnet.ps1 -Patterns "^${{ matrix.dotnet-version }}"
|
||||
|
||||
Reference in New Issue
Block a user