DSA/.github/workflows/dotnet.yml

28 lines
557 B
YAML
Raw Normal View History

2021-04-15 01:44:45 +00:00
name: .NET
on:
push:
branches: [ main ]
paths: '**/**.cs'
2021-04-15 01:44:45 +00:00
pull_request:
branches: [ main ]
paths: '**/**.cs'
2021-04-15 01:44:45 +00:00
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: Restore dependencies
run: dotnet restore algorithms/CSharp
2021-04-15 01:44:45 +00:00
- name: Build
run: dotnet build algorithms/CSharp --no-restore
2021-04-15 01:44:45 +00:00
- name: Test
run: dotnet test algorithms/CSharp --no-build --verbosity normal