Skip to content

ci: bump step-security/harden-runner from 2.17.0 to 2.19.3 #8

ci: bump step-security/harden-runner from 2.17.0 to 2.19.3

ci: bump step-security/harden-runner from 2.17.0 to 2.19.3 #8

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@ab7a9404c0f3da075243ca237b5fac12c98deaa5
with:
egress-policy: audit
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Setup .NET SDK
uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7
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@ab7a9404c0f3da075243ca237b5fac12c98deaa5
with:
egress-policy: audit
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- name: Setup .NET SDK
uses: actions/setup-dotnet@c2fa09f4bde5ebb9d1777cf28262a3eb3db3ced7
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