Files
starter-workflows/ci/dotnet.yml
T

29 lines
640 B
YAML
Raw Normal View History

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:
2024-03-12 19:08:45 +00:00
- uses: actions/checkout@v4
2020-12-15 01:08:26 +00:00
- name: Setup .NET
2024-03-12 19:08:45 +00:00
uses: actions/setup-dotnet@v4
2020-03-17 11:17:19 +00:00
with:
2024-03-12 19:08:45 +00:00
dotnet-version: 8.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