Skip to content

docs: Add the various GH doc files #294

docs: Add the various GH doc files

docs: Add the various GH doc files #294

Workflow file for this run

name: CI
on:
pull_request:
branches: [master, main]
paths-ignore:
- "**.md"
- "docs/**"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
env:
DOTNET_VERSION: "10.0.x"
DOTNET_CLI_TELEMETRY_OPTOUT: "1"
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: "1"
DOTNET_NOLOGO: "true"
SOLUTION_PATH: ./src/AzureEventGridSimulator.sln
CONFIGURATION: Release
jobs:
build-and-test:
name: Build & Test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
include:
- os: windows-latest
runtime: win-x64
- os: ubuntu-latest
runtime: linux-x64
- os: macos-latest
runtime: osx-arm64
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
cache: true
cache-dependency-path: "**/*.csproj"
- name: Restore dependencies
run: dotnet restore ${{ env.SOLUTION_PATH }} --runtime ${{ matrix.runtime }}
- name: Build
run: >-
dotnet build ${{ env.SOLUTION_PATH }}
--configuration ${{ env.CONFIGURATION }}
--runtime ${{ matrix.runtime }}
--no-restore
--no-incremental
/p:WarningLevel=4
/p:TreatWarningsAsErrors=true
- name: Test
run: >-
dotnet test ${{ env.SOLUTION_PATH }}
--configuration ${{ env.CONFIGURATION }}
--runtime ${{ matrix.runtime }}
--no-build
--verbosity normal
--logger "trx;LogFileName=test-results.trx"
--filter "Category=unit|Category=integration"
- name: Upload test results
uses: actions/upload-artifact@v6
if: always()
with:
name: test-results-${{ matrix.os }}
path: "**/TestResults/*.trx"
retention-days: 7