chore: add dotnet action

pull/185/head
Ming Tsai 2021-04-14 21:44:45 -04:00 committed by GitHub
parent 2f47d5c828
commit 9d35a9e42c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 27 additions and 0 deletions

27
.github/workflows/dotnet.yml vendored 100644
View File

@ -0,0 +1,27 @@
name: .NET
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.x
- name: Go to directory
run: cd 'algorithms/CSharp'
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal