29 lines
625 B
YAML
29 lines
625 B
YAML
|
name: Build and Test
|
||
|
|
||
|
on:
|
||
|
pull_request:
|
||
|
branches: [ master ]
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
|
||
|
runs-on: ubuntu-latest
|
||
|
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
with:
|
||
|
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
|
||
|
- uses: dotnet/nbgv@v0.4.0
|
||
|
with:
|
||
|
setAllVars: true
|
||
|
- name: Setup .NET
|
||
|
uses: actions/setup-dotnet@v1
|
||
|
with:
|
||
|
dotnet-version: 5.0.101
|
||
|
- name: Restore dependencies
|
||
|
run: dotnet restore
|
||
|
- name: Build
|
||
|
run: dotnet build --no-restore
|
||
|
- name: Test
|
||
|
run: dotnet test --no-build --verbosity normal
|