Skip to content

build(ci): only run builds supported by the .NET 5 runtime #82

build(ci): only run builds supported by the .NET 5 runtime

build(ci): only run builds supported by the .NET 5 runtime #82

Workflow file for this run

name: build
on:
push:
branches:
- '**'
tags:
- '!**'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Git Checkout
with:
fetch-depth: 0
- uses: actions/setup-dotnet@v3
id: dotnetstep
name: .NET Setup
with:
dotnet-version: 5.0.x
- name: Create Temporary Global.json
run: echo '{"sdk":{"version":"${{ steps.dotnetstep.outputs.dotnet-version }}", "rollForward":"major"}}' > ./global.json
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0
with:
versionSpec: '5.x'
- name: Determine Version
uses: gittools/actions/gitversion/execute@v0
- name: Restoring
run: dotnet restore --verbosity normal
- name: Building
run: dotnet build --configuration Release --no-restore --verbosity normal
- name: Testing
run: dotnet test --configuration Release --no-restore --no-build --verbosity normal