1
0
mirror of https://github.com/oliverbooth/VpSharp synced 2024-11-26 13:18:47 +00:00
VpSharp/.github/workflows/dotnet.yml

34 lines
800 B
YAML
Raw Normal View History

2022-11-27 15:05:19 +00:00
name: .NET
on:
push:
branches: [ main, develop ]
2022-11-27 15:05:19 +00:00
pull_request:
branches: [ main, develop ]
2022-11-27 15:05:19 +00:00
jobs:
build:
name: "Build & Test"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
2022-11-29 18:23:02 +00:00
dotnet-version: 7.0.x
2022-11-27 15:05:19 +00:00
- name: Add NuGet source
run: dotnet nuget add source --username oliverbooth --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/oliverbooth/index.json"
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Test
run: dotnet test --no-build --verbosity normal --configuration Release