Added APIKey logic to prevent client from calling endpoint unless it … #1140
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Feature Branch | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- feature/* | |
- bug/* | |
- hotfix/* | |
- DPPB* | |
permissions: | |
contents: read | |
packages: read | |
actions: read | |
jobs: | |
build-feature: | |
name: Build, Test and Verify Feature Branch | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: read | |
packages: read | |
actions: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '6.x' | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --no-restore | |
- name: Test | |
run: dotnet test --verbosity normal | |
- name: Format check | |
run: dotnet format | |
- name: Install .NET analyzers | |
run: dotnet tool install -g dotnet-format | |
- name: Run .NET analyzers | |
run: dotnet build --no-restore --configuration Release |