2022-10-10 11:12:22 +00:00
|
|
|
# This workflow will build a .NET project
|
|
|
|
|
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
|
|
|
|
|
|
2020-12-10 17:35:47 +00:00
|
|
|
name: .NET
|
2020-03-17 11:17:19 +00:00
|
|
|
|
|
|
|
|
on:
|
|
|
|
|
push:
|
2020-07-13 12:12:41 -07:00
|
|
|
branches: [ $default-branch ]
|
2020-03-17 11:17:19 +00:00
|
|
|
pull_request:
|
2020-07-13 12:12:41 -07:00
|
|
|
branches: [ $default-branch ]
|
2020-03-17 11:17:19 +00:00
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
build:
|
|
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
|
|
steps:
|
2024-03-12 12:08:25 -07:00
|
|
|
- uses: actions/checkout@v4
|
2020-12-10 17:35:47 +00:00
|
|
|
- name: Setup .NET
|
2024-03-12 12:08:25 -07:00
|
|
|
uses: actions/setup-dotnet@v4
|
2020-03-17 11:17:19 +00:00
|
|
|
with:
|
2024-03-12 12:08:25 -07:00
|
|
|
dotnet-version: 8.0.x
|
2020-12-10 17:41:44 +00:00
|
|
|
- name: Restore dependencies
|
2020-03-17 11:17:19 +00:00
|
|
|
run: dotnet restore
|
|
|
|
|
- name: Build
|
2020-12-10 17:44:30 +00:00
|
|
|
run: dotnet build --no-restore
|
2020-03-17 11:17:19 +00:00
|
|
|
- name: Test
|
2020-12-10 17:42:57 +00:00
|
|
|
run: dotnet test --no-build --verbosity normal
|