Created
January 23, 2021 13:21
-
-
Save yrshaikh/db3ab204bfa3399a307b5a68b5ad7f0e to your computer and use it in GitHub Desktop.
Simple build and Test workflow for .NET based projects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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