[DMS-818] Relational flattening performance spike #1346
Workflow file for this run
This file contains hidden or 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
# SPDX-License-Identifier: Apache-2.0 | |
# Licensed to the Ed-Fi Alliance under one or more agreements. | |
# The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. | |
# See the LICENSE and NOTICES files in the project root for more information. | |
name: On Config Pull Request | |
on: | |
push: | |
# Running on push to main to support CodeQL on C# | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
env: | |
CONFIGURATION: "Release" | |
permissions: read-all | |
jobs: | |
scan-actions-bidi: | |
name: Scan Actions, scan all files for BIDI Trojan Attacks | |
uses: Ed-Fi-Alliance-OSS/Ed-Fi-Actions/.github/workflows/repository-scanner.yml@main | |
with: | |
config-file-path: ./.github/workflows/bidi-config.json | |
run-unit-tests: | |
name: Run Unit Tests | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: pwsh | |
steps: | |
- name: Checkout the Repo | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Cache Nuget packages | |
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 #v4.2 | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/Directory.Packages.props') }} | |
restore-keys: | | |
${{ runner.os }}-nuget- | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@87b7050bc53ea08284295505d98d2aa94301e852 # v4.2 | |
with: | |
dotnet-version: '8.0.x' | |
- name: Build | |
run: ./build-config.ps1 Build -Configuration ${{ env.CONFIGURATION }} | |
- name: Install Coverlet Reference | |
if: success() | |
run: | | |
dotnet tool install --global coverlet.console | |
dotnet tool install --global dotnet-reportgenerator-globaltool | |
- name: Run Unit Tests | |
run: ./build-config.ps1 UnitTest -Configuration ${{ env.CONFIGURATION }} | |
- name: Generate Coverage Report | |
if: ${{ hashFiles('coverage.cobertura.xml') != '' }} | |
run: ./build-config.ps1 Coverage | |
- name: Upload Coverage Report | |
if: always() | |
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5 | |
with: | |
name: Coverage Report | |
path: coveragereport | |
- name: Upload Test Results | |
if: always() | |
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5 | |
with: | |
name: Unit Test Results | |
overwrite: true | |
path: | | |
**/*.trx | |
run-integration-tests: | |
name: Run Integration Tests | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: pwsh | |
services: | |
postgres: | |
image: postgres:16.3-alpine | |
options: >- | |
--health-cmd="pg_isready" | |
--health-interval=10s | |
--health-timeout=5s | |
--health-retries=5 | |
ports: | |
- 5432:5432 | |
env: | |
POSTGRES_HOST_AUTH_METHOD: trust | |
steps: | |
- name: Checkout the Repo | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Cache Nuget packages | |
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 #v4.2 | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/Directory.Packages.props') }} | |
restore-keys: | | |
${{ runner.os }}-nuget- | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@87b7050bc53ea08284295505d98d2aa94301e852 # v4.2 | |
with: | |
dotnet-version: '8.0.x' | |
- name: Build | |
run: ./build-config.ps1 Build -Configuration ${{ env.CONFIGURATION }} | |
- name: Run Integration Tests | |
if: success() | |
run: ./build-config.ps1 IntegrationTest -Configuration ${{ env.CONFIGURATION }} | |
- name: Upload Integration Test Results | |
if: always() | |
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5 | |
with: | |
name: Integration Test Results | |
overwrite: true | |
path: | | |
**/*.trx | |
run-e2e-tests: | |
name: Run E2E Tests | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: pwsh | |
strategy: | |
matrix: | |
identityprovider: [keycloak, self-contained] | |
steps: | |
- name: Checkout the Repo | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Cache Nuget packages | |
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 #v4.2 | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/Directory.Packages.props') }} | |
restore-keys: | | |
${{ runner.os }}-nuget- | |
- name: Setup dotnet | |
uses: actions/setup-dotnet@87b7050bc53ea08284295505d98d2aa94301e852 # v4.2 | |
with: | |
dotnet-version: '8.0.x' | |
- name: Build | |
run: ./build-config.ps1 Build -Configuration ${{ env.CONFIGURATION }} -IdentityProvider ${{matrix.identityprovider}} | |
- name: Run End to End Tests - IdentityProvider (${{matrix.identityprovider}}) | |
if: success() | |
run: ./build-config.ps1 E2ETest -Configuration ${{ env.CONFIGURATION }} -IdentityProvider ${{matrix.identityprovider}} | |
- name: Upload Logs | |
if: failure() | |
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5 | |
with: | |
name: test-logs | |
path: | | |
./src/services/EdFi.DmsConfigurationService.Api.Tests.E2E/bin/Release/net8.0/logs | |
retention-days: 10 | |
- name: Upload Test Results | |
if: always() | |
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5 | |
with: | |
name: E2E Test Results | |
overwrite: true | |
path: | | |
**/*.trx | |
event_file: | |
name: Upload Event File | |
runs-on: ubuntu-latest | |
needs: [run-unit-tests, run-e2e-tests, run-integration-tests] | |
if: always() | |
steps: | |
- name: Upload | |
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5 | |
with: | |
name: Event File | |
path: ${{ github.event_path }} |