Skip to content

Update checkout and setup-dotnet actions #14

Update checkout and setup-dotnet actions

Update checkout and setup-dotnet actions #14

Workflow file for this run

name: Validate Pull Request
on:
pull_request:
branches:
- main
env:
AZURE_FUNCTIONAPP_PACKAGE_PATH: "./src/Function"
DOTNET_VERSION: "8.0.x"
jobs:
check_formatting:
runs-on: ubuntu-latest
name: Check Formatting
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
- run: |
dotnet tool restore
dotnet csharpier . --check
build:
name: Build
runs-on: windows-latest
steps:
- name: "Checkout GitHub Action"
uses: actions/checkout@v4
- name: Setup DotNet ${{ env.DOTNET_VERSION }} Environment
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: "Resolve Project Dependencies Using Dotnet"
shell: pwsh
run: |
pushd './${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}'
dotnet build --configuration Release --output ./output
popd