MapTo/.github/workflows/build-and-test.yml

29 lines
597 B
YAML
Raw Permalink Normal View History

2020-12-22 19:31:24 +03:00
name: Build and Test
2020-12-22 19:21:07 +03:00
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
2020-12-22 19:21:07 +03:00
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.101
- name: Restore dependencies
run: dotnet restore
- name: Build
2020-12-24 10:38:03 +03:00
run: dotnet build --no-restore
2020-12-22 19:21:07 +03:00
- name: Test
run: dotnet test --no-build --verbosity normal