Skip to content

CNX-9308 CNX-9632 Moving to Github Actions for DUI3 #1

CNX-9308 CNX-9632 Moving to Github Actions for DUI3

CNX-9308 CNX-9632 Moving to Github Actions for DUI3 #1

Workflow file for this run

name: .NET Build
on:
pull_request:
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.x.x
- name: NuGet Cache
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: "5.x"
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Determine Version
id: version
uses: gittools/actions/gitversion/[email protected]
- name: 🗄️ Format
run: ./build.ps1 format
- name: ♻️ Restore
run: ./build.ps1 restore
- name: ⚒️ Build
run: ./build.ps1 build
env:
VERSION: ${{ env.fullSemVer }}
FILE_VERSION: ${{ env.assemblySemFileVer }}