Bib 809 machine translation scoring #1681
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: Pre-merge | |
on: | |
pull_request: | |
branches: | |
- '**' | |
permissions: | |
id-token: write | |
jobs: | |
lint_and_test: | |
name: Lint and test | |
runs-on: ubuntu-latest | |
environment: | |
name: qa-tests | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v4.1.7 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4.0.1 | |
with: | |
dotnet-version: '9.x' | |
- name: Build | |
run: dotnet build --no-incremental --configuration Release /p:WarningsAsErrors=true /warnaserror | |
- name: Login to Azure | |
uses: azure/login@v2.1.1 | |
with: | |
client-id: ${{ secrets.AZURE_CLIENT_ID }} | |
tenant-id: ${{ secrets.AZURE_TENANT_ID }} | |
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
- name: Test | |
run: | | |
dotnet test \ | |
-e ASPNETCORE_ENVIRONMENT="${{ vars.ASPNETCORE_ENVIRONMENT }}" \ | |
-e ConnectionStrings__AzureStorageAccount="${{ secrets.AZURE_STORAGE_ACCOUNT_CONNECTION_STRING }}" \ | |
-e ConnectionStrings__BiblioNexusDb="${{ secrets.BIBLIONEXUS_DB_CONNECTION_STRING }}" \ | |
-e KeyVaultUri="${{ secrets.KEY_VAULT_URI }}" \ | |
-e JwtSettings__Authority="${{ secrets.JWT_SETTINGS_AUTHORITY }}" \ | |
-e JwtSettings__Audience="${{ secrets.JWT_SETTINGS_AUDIENCE }}" \ | |
-e Auth0Settings__ApiClientId="${{ secrets.AUTH0SETTINGS_API_CLIENT_ID }}" \ | |
-e Auth0Settings__ApplicationClientId="${{ secrets.AUTH0SETTINGS_APPLICATION_CLIENT_ID }}" \ | |
-e Auth0Settings__Audience="${{ secrets.AUTH0_SETTINGS_AUDIENCE }}" \ | |
-e Auth0Settings__BaseUri="${{ secrets.AUTH0_SETTINGS_BASE_URI }}" |