Skip to content

adopt Tamp.Core 1.4.0 + replace Clean glob pattern with CleanArtifact… #4

adopt Tamp.Core 1.4.0 + replace Clean glob pattern with CleanArtifact…

adopt Tamp.Core 1.4.0 + replace Clean glob pattern with CleanArtifact… #4

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: build & test (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
env:
DOTNET_NOLOGO: '1'
DOTNET_CLI_TELEMETRY_OPTOUT: '1'
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: '1'
TampCoreMode: package
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
# Azure CLI is preinstalled on all three github-hosted runner images
# (ubuntu-latest, windows-latest, macos-latest). We just verify the
# version so a missing/broken install surfaces immediately.
- name: Verify az CLI
shell: bash
run: az version
- name: Install supported .NET SDKs
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
8.0.x
9.0.x
10.0.x
- name: Verify SDKs
shell: bash
run: |
dotnet --info
dotnet --list-sdks
dotnet --list-runtimes
- name: NuGet cache
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: nuget-${{ runner.os }}-${{ hashFiles('**/*.csproj', '**/Directory.Packages.props') }}
restore-keys: |
nuget-${{ runner.os }}-
- name: Restore
run: dotnet restore Tamp.AzureCli.slnx
- name: Build
run: dotnet build Tamp.AzureCli.slnx --no-restore --configuration Release
- name: Test
run: dotnet test Tamp.AzureCli.slnx --no-build --configuration Release --logger "trx;LogFileName=test-results.trx" --results-directory ./TestResults
- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results-${{ matrix.os }}
path: ./TestResults/**/*.trx
if-no-files-found: warn