Skip to content

ci: pin all github actions (#104) #173

ci: pin all github actions (#104)

ci: pin all github actions (#104) #173

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: BuildAndRunTests
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: read
jobs:
build:
strategy:
matrix:
configuration: [Debug, Release]
os: [windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Setup .NET
uses: actions/setup-dotnet@9a946fdbd5fb07b82b2f5a4466058b876ab72bb2 # v5.3.0
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build the application
run: dotnet build --no-restore --configuration ${{ matrix.configuration }}
- name: Execute unit tests
run: dotnet test --verbosity normal