Update to .NET 9 and add health check endpoint #336
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build the .NET project, run npm and webpack, and upload the artifact | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | |
name: Development (.NET) | |
on: | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
- uses: actions/cache@v4 | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-nuget- | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: npm install | |
run: npm install --force | |
working-directory: 'GIFrameworkMaps.Web' | |
- name: Install webpack | |
run: npm i -g webpack webpack-cli | |
working-directory: 'GIFrameworkMaps.Web' | |
- name: webpack | |
run: webpack --config webpack.dev.js | |
working-directory: 'GIFrameworkMaps.Web' | |
- name: Build | |
run: dotnet build --no-restore | |
- name: Test | |
run: dotnet test --no-build --verbosity normal | |
- name: Publish | |
run: dotnet publish -o '../release' | |
working-directory: 'GIFrameworkMaps.Web' | |
- name: Upload Build Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
path: 'release' |