Skip to content

Add ability to use managed identity #1758

Add ability to use managed identity

Add ability to use managed identity #1758

Workflow file for this run

name: CI
on:
push:
branches:
- master
- release-*
pull_request:
workflow_dispatch:
env:
DOTNET_NOLOGO: true
jobs:
build:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: windows-2019
name: Windows
- os: ubuntu-20.04
name: Linux
fail-fast: false
steps:
- name: Check for secrets
env:
SECRETS_AVAILABLE: ${{ secrets.SECRETS_AVAILABLE }}
shell: pwsh
run: exit $(If ($env:SECRETS_AVAILABLE -eq 'true') { 0 } Else { 1 })
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Setup .NET SDK
uses: actions/[email protected]
with:
dotnet-version: |
7.0.x
6.0.x
- name: Setup Azure Core tools - Windows
if: runner.os == 'Windows'
run: |
choco install azure-functions-core-tools
echo "PathToFuncExe=C:\ProgramData\chocolatey\lib\azure-functions-core-tools\tools\func.exe" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
- name: Setup Azure Core tools - Linux
if: runner.os == 'Linux'
run: |
sudo apt-get install azure-functions-core-tools -y
echo "PathToFuncExe=func" >> $GITHUB_ENV
- name: Build
run: dotnet build src --configuration Release
- name: Upload packages
if: runner.os == 'Windows'
uses: actions/[email protected]
with:
name: NuGet packages
path: nugets/
retention-days: 7
- name: Azure login
uses: azure/[email protected]
with:
creds: ${{ secrets.AZURE_ACI_CREDENTIALS }}
- name: Setup Azure Service Bus
uses: Particular/[email protected]
with:
connection-string-name: AzureWebJobsServiceBus
tag: ASBFunctions
- name: Run tests
uses: Particular/[email protected]