1
0
mirror of https://github.com/oliverbooth/VpSharp synced 2024-11-10 03:35:42 +00:00
VpSharp/.github/workflows/dotnet.yml

37 lines
911 B
YAML
Raw Permalink Normal View History

2022-11-27 15:05:19 +00:00
name: .NET
on:
push:
pull_request:
jobs:
build:
name: "Build & Test"
runs-on: ubuntu-latest
steps:
- name: Checkout
2024-06-18 15:48:26 +01:00
uses: actions/checkout@v4
2022-11-27 15:05:19 +00:00
- name: Setup .NET
2024-06-18 15:48:26 +01:00
uses: actions/setup-dotnet@v4
2022-11-27 15:05:19 +00:00
with:
2024-01-06 12:36:07 +00:00
dotnet-version: |
6.0.x
8.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
2024-01-06 12:36:07 +00:00
- name: Test .NET 6
run: dotnet test --no-build --verbosity normal --configuration Release --framework net6.0
- name: Test .NET 8
run: dotnet test --no-build --verbosity normal --configuration Release --framework net8.0