Skip to content

ci: bump actions/setup-dotnet from 5.2.0 to 5.3.0 #17

ci: bump actions/setup-dotnet from 5.2.0 to 5.3.0

ci: bump actions/setup-dotnet from 5.2.0 to 5.3.0 #17

Workflow file for this run

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: CI
permissions: read-all
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_NOLOGO: true
jobs:
format:
name: Format Check
runs-on: windows-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@f808768d1510423e83855289c910610ca9b43176
with:
egress-policy: audit
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Setup .NET SDK
uses: actions/setup-dotnet@9a946fdbd5fb07b82b2f5a4466058b876ab72bb2
with:
global-json-file: global.json
- name: Restore dotnet tools
run: dotnet tool restore
- name: Format check
run: dotnet run Build.cs format check
build-and-test:
name: Build and Test (${{ matrix.configuration }})
runs-on: windows-latest
strategy:
matrix:
configuration: [Debug, Release]
steps:
- name: Harden Runner
uses: step-security/harden-runner@f808768d1510423e83855289c910610ca9b43176
with:
egress-policy: audit
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Setup .NET SDK
uses: actions/setup-dotnet@9a946fdbd5fb07b82b2f5a4466058b876ab72bb2
with:
global-json-file: global.json
- name: Restore dependencies
run: dotnet restore SystemLatencyMonitor.slnx
- name: Build solution
run: dotnet build SystemLatencyMonitor.slnx -c ${{ matrix.configuration }} --no-restore
- name: Run tests
run: dotnet run Build.cs -- test -c ${{ matrix.configuration }} --no-build