Skip to content

Instantly share code, notes, and snippets.

@yrshaikh
Created January 23, 2021 13:21
Show Gist options
  • Select an option

  • Save yrshaikh/db3ab204bfa3399a307b5a68b5ad7f0e to your computer and use it in GitHub Desktop.

Select an option

Save yrshaikh/db3ab204bfa3399a307b5a68b5ad7f0e to your computer and use it in GitHub Desktop.
Simple build and Test workflow for .NET based projects
name: Build and Test
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.301
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --verbosity normal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment