2022-10-20 04:29:35 +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-15 01:08:26 +00:00
|
|
|
name: .NET
|
2020-03-17 11:17:19 +00:00
|
|
|
|
|
|
|
|
on:
|
|
|
|
|
push:
|
2020-07-14 18:11:40 +00:00
|
|
|
branches: [ $default-branch ]
|
2020-03-17 11:17:19 +00:00
|
|
|
pull_request:
|
2020-07-14 18:11:40 +00:00
|
|
|
branches: [ $default-branch ]
|
2020-03-17 11:17:19 +00:00
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
build:
|
|
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
|
|
steps:
|
2022-03-28 17:11:12 +00:00
|
|
|
- uses: actions/checkout@v3
|
2020-12-15 01:08:26 +00:00
|
|
|
- name: Setup .NET
|
2022-09-30 12:21:47 +00:00
|
|
|
uses: actions/setup-dotnet@v3
|
2020-03-17 11:17:19 +00:00
|
|
|
with:
|
2022-07-18 12:25:02 +00:00
|
|
|
dotnet-version: 6.0.x
|
2020-12-15 01:08:26 +00:00
|
|
|
- name: Restore dependencies
|
2020-03-17 11:17:19 +00:00
|
|
|
run: dotnet restore
|
|
|
|
|
- name: Build
|
2020-12-15 01:08:26 +00:00
|
|
|
run: dotnet build --no-restore
|
2020-03-17 11:17:19 +00:00
|
|
|
- name: Test
|
2020-12-15 01:08:26 +00:00
|
|
|
run: dotnet test --no-build --verbosity normal
|