Skip to content

Use the maintained Azure Functions feature #3

Use the maintained Azure Functions feature

Use the maintained Azure Functions feature #3

Workflow file for this run

name: ci-dotnet
on:
push:
branches:
- "**"
paths:
- ".github/workflows/ci-function.yml"
- "functions/**"
pull_request:
branches: [main]
paths-ignore:
- "**/README.md"
- "**/LICENSE"
- "visuals/**"
schedule:
- cron: "0 2 * * *"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
AZURE_FUNCTIONAPP_PACKAGE_PATH: "./functions"
jobs:
dotnet:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
- name: Restore dependencies
run: |
pushd './${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}'
dotnet restore
popd
- name: Build
run: |
pushd './${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}'
dotnet build --no-restore --output ./bin/publish
popd
- name: Test
run: |
pushd './${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}'
dotnet test --no-build --verbosity normal
popd