Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions devops-pipelines/backend/backend-pr-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,19 @@ variables:
value: '10.0.*'
- name: testResultsDirectory
value: "$(Agent.TempDirectory)/TestResults"
- name: prSourceBranch
value: $[variables['System.PullRequest.SourceBranch']]
- name: prTargetBranch
value: $[variables['System.PullRequest.TargetBranch']]

pool: "LACC PreProd Pool"

stages:
- stage: Build_And_Test_Backend
condition: not(and(
eq(variables.prSourceBranch, 'development' ),
eq(variables.prTargetBranch, 'main')
))
displayName: "Build, Test & Package"
jobs:
- job: Package_NuGet
Expand Down
21 changes: 21 additions & 0 deletions devops-pipelines/ui/ui-pr-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,17 @@ variables:
value: ui-spa
- name: covDir
value: "coverage"
- name: prSourceBranch
value: $[variables['System.PullRequest.SourceBranch']]
- name: prTargetBranch
value: $[variables['System.PullRequest.TargetBranch']]

stages:
- stage: Build_and_Test_UI
condition: not(and(
eq(variables.prSourceBranch, 'development' ),
eq(variables.prTargetBranch, 'main')
))
displayName: "Build & Test UI SPA"
jobs:
- job: Build_and_Test
Expand Down Expand Up @@ -143,3 +151,16 @@ stages:
inputs:
summaryFileLocation: "$(workingDir)/$(covDir)/merged/Cobertura.xml"
failIfCoverageEmpty: true

# On PR development -> main, run the E2E tests in dev
- stage: Run_E2E_tests
condition: and(
eq(variables.prSourceBranch, 'development' ),
eq(variables.prTargetBranch, 'main' )
)
dependsOn: []
displayName: "Run E2E Test on Dev"
jobs:
- template: ../templates/e2e-playwright-test-job.yml
parameters:
environment: "dev"
Loading