Skip to content

converting the private_endpoints to an object #381

converting the private_endpoints to an object

converting the private_endpoints to an object #381

Workflow file for this run

name: build
permissions:
id-token: write
contents: read
on:
pull_request:
types:
- opened
# target only main branch that the PR is attempting to merge to
branches:
- main
# support manually triggering
workflow_dispatch:
env:
src_dir: src/
cli_dir: cli/
jobs:
build:
runs-on: ubuntu-latest
environment: dev
strategy:
matrix:
dotnet-version: [ '7.0.x' ]
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: pip install -r cli/requirements.txt
- name: Setup .NET ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Azure Login
uses: azure/login@v1
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: Cache packages
uses: actions/cache@v3
with:
path: ~/.nuget/packages
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget
- name: Build python
run: scripts/cli-build.sh
working-directory: ./
- name: Build dotnet
run: dotnet build
working-directory: ${{ env.src_dir }}
- name: Test dotnet
run: dotnet test --logger trx --results-directory "TestResults-${{ matrix.dotnet-version }}"
working-directory: ${{ env.src_dir }}
- name: Upload test results
uses: actions/upload-artifact@v3
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}
with:
name: dotnet-results-${{ matrix.dotnet-version }}
path: ${{ env.src_dir }}/TestResults-${{ matrix.dotnet-version }}