Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 5

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 5
4 changes: 2 additions & 2 deletions .github/workflows/run-e2e-tests-dotnet8-lcon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set Node.js 20.x for GitHub Action
- name: Set Node.js 24.x for GitHub Action
uses: actions/setup-node@v1
with:
node-version: 20.x
node-version: 24.x

- name: Run Npm Install for GitHub Action
run: npm install
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run-e2e-tests-dotnet8-wcon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set Node.js 20.x for GitHub Action
- name: Set Node.js 24.x for GitHub Action
uses: actions/setup-node@v1
with:
node-version: 20.x
node-version: 24.x

- name: Run Npm Install for GitHub Action
run: npm install
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run-e2e-tests-java8-lcon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set Node.js 20.x for GitHub Action
- name: Set Node.js 24.x for GitHub Action
uses: actions/setup-node@v1
with:
node-version: 20.x
node-version: 24.x

- name: Run Npm Install for GitHub Action
run: npm install
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run-e2e-tests-java8-wcon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set Node.js 20.x for GitHub Action
- name: Set Node.js 24.x for GitHub Action
uses: actions/setup-node@v1
with:
node-version: 20.x
node-version: 24.x

- name: Run Npm Install for GitHub Action
run: npm install
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/run-e2e-tests-node20-lcon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ permissions:
env:
AZURE_FUNCTIONAPP_NAME: gae-fa-node20-lcon
AZURE_FUNCTIONAPP_PACKAGE_PATH: './tests/e2e/node20'
NODE_VERSION: '20.x'
NODE_VERSION: '24.x'

jobs:
run:
Expand All @@ -27,10 +27,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set Node.js 20.x for GitHub Action
- name: Set Node.js 24.x for GitHub Action
uses: actions/setup-node@v1
with:
node-version: 20.x
node-version: 24.x

- name: Run Npm Install for GitHub Action
run: npm install
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/run-e2e-tests-node20-wcon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ permissions:
env:
AZURE_FUNCTIONAPP_NAME: gae-fa-node20-wcon
AZURE_FUNCTIONAPP_PACKAGE_PATH: './tests/e2e/node20'
NODE_VERSION: '20.x'
NODE_VERSION: '24.x'

jobs:
run:
Expand All @@ -27,10 +27,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set Node.js 20.x for GitHub Action
- name: Set Node.js 24.x for GitHub Action
uses: actions/setup-node@v1
with:
node-version: 20.x
node-version: 24.x

- name: Run Npm Install for GitHub Action
run: npm install
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run-e2e-tests-powershell6-wcon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set Node.js 20.x for GitHub Action
- name: Set Node.js 24.x for GitHub Action
uses: actions/setup-node@v1
with:
node-version: 20.x
node-version: 24.x

- name: Run Npm Install for GitHub Action
run: npm install
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run-e2e-tests-python310-flexcon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set Node.js 20.x for GitHub Action
- name: Set Node.js 24.x for GitHub Action
uses: actions/setup-node@v1
with:
node-version: 20.x
node-version: 24.x

- name: Setup Python ${{ env.PYTHON_VERSION }} Environment
uses: actions/setup-python@v1
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run-e2e-tests-python310-lcon-msi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set Node.js 20.x for GitHub Action
- name: Set Node.js 24.x for GitHub Action
uses: actions/setup-node@v1
with:
node-version: 20.x
node-version: 24.x

- name: Setup Python ${{ env.PYTHON_VERSION }} Environment
uses: actions/setup-python@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- dev

env:
NODE_VERSION: '20.x'
NODE_VERSION: '24.x'

jobs:
run-unit-tests:
Expand Down
102 changes: 102 additions & 0 deletions .github/workflows/test-workflow-dotnet8-lcon.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
name: Build and deploy .NET project to Azure Function App using OIDC

# CONFIGURATION
#
# This workflow can be used to deploy your .NET project to a function app on any hosting plan, except for Container Apps (which uses functions-container-action).
#
# For an overview of using GitHub workflows with Azure Functions, see https://learn.microsoft.com/azure/azure-functions/functions-how-to-github-actions
#
# 1. Configure a federated identity credential to your GitHub branch on an Azure user-assigned managed identity.
# For instructions, follow the README at https://github.com/Azure/functions-action#use-oidc-recommended
#
# 2. Add the following values from the managed identity to your repo's variables:
# AZURE_CLIENT_ID
# AZURE_TENANT_ID
# AZURE_SUBSCRIPTION_ID
# For instructions on creating repo variables, see https://docs.github.com/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables#defining-configuration-variables-for-multiple-workflows
#
# 3. Ensure your workflow is triggered by your desired event. By default, it is triggered when a push is made to main, and it can be manually run.
# For guidance on event triggers, see https://docs.github.com/actions/writing-workflows/choosing-when-your-workflow-runs/triggering-a-workflow#using-events-to-trigger-workflows
#
# 4. Change the variables in the `env` section according to your project:
# For the latest list of supported runtimes, see https://learn.microsoft.com/azure/azure-functions/supported-languages

on:
push:
tags:
- 'v1'
# branches: [ main ]
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
default: 'warning'
type: choice
options:
- info
- warning
- debug

env:
AZURE_FUNCTIONAPP_NAME: 'gae-fa-dotnet8-lcon' # Set this to your function app name on Azure
AZURE_FUNCTIONAPP_PROJECT_PATH: './tests/e2e/dotnet8' # Set this to the path to your function app project, defaults to the repository root. The deploy action will package the contents of this path.
DOTNET_VERSION: '8.0.405' # Set this to the .NET version of your project
BUILD_ARTIFACT_NAME: 'released-package' # Set this according to your team's naming convention

jobs:
build:
runs-on: ubuntu-latest # Assumes your target function app is Linux-based
permissions:
id-token: write # Required for OIDC
contents: read # Required for actions/checkout
defaults:
run:
shell: bash
working-directory: ${{ env.AZURE_FUNCTIONAPP_PROJECT_PATH }}
steps:
- name: 'Checkout repository'
uses: actions/checkout@v4

- name: 'Set up .NET version: ${{ env.DOTNET_VERSION }}'
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

# Perform additional steps such as running tests, if needed

- name: 'Build and prepare .NET project for deployment'
run: dotnet publish --configuration Release --output ./output

- name: Upload artifact for the deployment job
uses: actions/upload-artifact@v4
with:
name: ${{ env.BUILD_ARTIFACT_NAME }}
path: ${{ env.AZURE_FUNCTIONAPP_PROJECT_PATH }}/output
include-hidden-files: true # Required for .NET projects

deploy:
runs-on: ubuntu-latest # Assumes your target function app is Linux-based
needs: build
permissions:
id-token: write # Required for OIDC
steps:
- name: 'Download artifact from build job'
uses: actions/download-artifact@v4
with:
name: ${{ env.BUILD_ARTIFACT_NAME }}
path: '${{ env.AZURE_FUNCTIONAPP_PROJECT_PATH }}/downloaded-artifact'

- name: 'Log in to Azure with AZ CLI'
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID_FA_DOTNET8_LCON }}
tenant-id: ${{ secrets.AZURE_TENANT_ID_FA_E2E_TESTS }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID_FA_E2E_TESTS }}

uses: Azure/functions-action@v1
id: deploy-to-function-app
with:
app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }}
package: '${{ env.AZURE_FUNCTIONAPP_PROJECT_PATH }}/downloaded-artifact'

# For more samples to get started with GitHub Action workflows to deploy to Azure, refer to https://github.com/Azure/actions-workflow-samples
104 changes: 104 additions & 0 deletions .github/workflows/test-workflow-dotnet8-wcon.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
name: Build and deploy .NET project to Azure Function App using OIDC

# CONFIGURATION
#
# This workflow can be used to deploy your .NET project to a function app on any hosting plan, except for Container Apps (which uses functions-container-action) and Flex Consumption (which uses `ubuntu-latest` as the runner).
#
# For an overview of using GitHub workflows with Azure Functions, see https://learn.microsoft.com/azure/azure-functions/functions-how-to-github-actions
#
# 1. Configure a federated identity credential to your GitHub branch on an Azure user-assigned managed identity.
# For instructions, follow the README at https://github.com/Azure/functions-action#use-oidc-recommended
#
# 2. Add the following values from the managed identity to your repo's variables:
# AZURE_CLIENT_ID
# AZURE_TENANT_ID
# AZURE_SUBSCRIPTION_ID
# For instructions on creating repo variables, see https://docs.github.com/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables#defining-configuration-variables-for-multiple-workflows
#
# 3. Ensure your workflow is triggered by your desired event. By default, it is triggered when a push is made to main, and it can be manually run.
# For guidance on event triggers, see https://docs.github.com/actions/writing-workflows/choosing-when-your-workflow-runs/triggering-a-workflow#using-events-to-trigger-workflows
#
# 4. Change the variables in the `env` section according to your project:
# For the latest list of supported runtimes, see https://learn.microsoft.com/azure/azure-functions/supported-languages

on:
push:
tags:
- 'v1'
# branches: [ main ]
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
type: choice
options:
- info
- warning
- debug

env:
AZURE_FUNCTIONAPP_NAME: 'gae-fa-dotnet8-wcon' # Set this to your function app name on Azure
AZURE_FUNCTIONAPP_PROJECT_PATH: './tests/e2e/dotnet8' # Set this to the path to your function app project, defaults to the repository root. The deploy action will package the contents of this path.
DOTNET_VERSION: '8.0.405' # Set this to the .NET version of your project
BUILD_ARTIFACT_NAME: 'released-package' # Set this according to your team's naming convention

jobs:
build:
runs-on: windows-latest # Assumes your target function app is Windows-based
permissions:
id-token: write # Required for OIDC
contents: read # Required for actions/checkout
defaults:
run:
shell: bash
working-directory: ${{ env.AZURE_FUNCTIONAPP_PROJECT_PATH }}
steps:
- name: 'Checkout repository'
uses: actions/checkout@v4

- name: 'Set up .NET version: ${{ env.DOTNET_VERSION }}'
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

# Perform additional steps such as running tests, if needed

- name: 'Build and prepare .NET project for deployment'
run: dotnet publish --configuration Release --output ./output

- name: Upload artifact for the deployment job
uses: actions/upload-artifact@v4
with:
name: ${{ env.BUILD_ARTIFACT_NAME }}
path: ${{ env.AZURE_FUNCTIONAPP_PROJECT_PATH }}/output
include-hidden-files: true # Required for .NET projects

deploy:
runs-on: windows-latest # Assumes your target function app is Windows-based
needs: build
permissions:
id-token: write # Required for OIDC
steps:
- name: 'Download artifact from build job'
uses: actions/download-artifact@v4
with:
name: ${{ env.BUILD_ARTIFACT_NAME }}
path: '${{ env.AZURE_FUNCTIONAPP_PROJECT_PATH }}/downloaded-artifact'

- name: 'Log in to Azure with AZ CLI'
uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID_FA_DOTNET8_WCON }}
tenant-id: ${{ secrets.AZURE_TENANT_ID_FA_E2E_TESTS }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID_FA_E2E_TESTS }}

- name: 'Run the Azure Functions action'
uses: Azure/functions-action@v1
id: deploy-to-function-app
with:
app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }}
package: '${{ env.AZURE_FUNCTIONAPP_PROJECT_PATH }}/downloaded-artifact'

# For more samples to get started with GitHub Action workflows to deploy to Azure, refer to https://github.com/Azure/actions-workflow-samples
Loading
Loading