mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-14 04:15:41 +00:00
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
name: .NET
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- '*'
|
|
pull_request:
|
|
branches:
|
|
- '*'
|
|
|
|
jobs:
|
|
build:
|
|
name: "Build & Test"
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v3
|
|
with:
|
|
dotnet-version: |
|
|
3.1.x
|
|
6.0.x
|
|
7.0.x
|
|
|
|
- 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 .NET Core 3.1
|
|
run: dotnet test --no-build --verbosity normal --configuration Release --framework netcoreapp3.1
|
|
|
|
- name: Test .NET 6
|
|
run: dotnet test --no-build --verbosity normal --configuration Release --framework net6.0
|
|
|
|
- name: Test .NET 7
|
|
run: dotnet test --no-build --verbosity normal --configuration Release --framework net7.0
|