Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
4f1b667
Update README.md
binon Jan 10, 2024
3e0cfaf
Set up CI with Azure Pipelines for WebUI
binon Jan 16, 2024
aed3dec
Triggering CI in Azure Pipeline
binon Jan 16, 2024
df3f683
Test whether master branch update triggers
binon Jan 16, 2024
b846af6
Update azure-pipelines-webui-ci.yml
binon Jan 16, 2024
9851951
Test trigger 2 CI
binon Jan 16, 2024
f8118fa
Test trigger 2 master
binon Jan 16, 2024
3699ef3
Create azure-pipelines-webui-ci.yml
binon Jan 16, 2024
692df2b
Update azure-pipelines-webui-ci.yml for Azure Pipelines
binon Jan 16, 2024
07ec9af
Update master to test trigger
binon Jan 16, 2024
ae4a205
Update CI to test trigger
binon Jan 16, 2024
81c2533
Update azure-pipelines-webui-ci.yml for Azure Pipelines
binon Jan 16, 2024
bbd15a6
trigger commit ci
binon Jan 16, 2024
eb26de6
Update azure-pipelines-webui-ci.yml
binon Jan 16, 2024
ec171d2
Commit to master any effect
binon Jan 16, 2024
279b7ca
Create LearningHub OpenAPI-ReportAPI-CI.yml
binon Jan 16, 2024
26e0199
Delete .github/workflows/LearningHub OpenAPI-ReportAPI-CI.yml
binon Jan 16, 2024
ad9beb9
Create LearningHub OpenAPI-ReportAPI-CI.yml
binon Jan 16, 2024
b0f95ee
Update master README
binon Jan 16, 2024
2f656ef
Update CI README
binon Jan 16, 2024
4a4d65d
Create LearningHub Database-CI.yml
binon Jan 17, 2024
21db00d
Delete azure-pipelines-webui-ci.yml
binon Jan 17, 2024
914ed15
Create azure-pipeline-webui-ci.yml
binon Jan 17, 2024
07081ce
Rename LearningHub OpenAPI-ReportAPI-CI.yml to azure-pipeline-openApi…
binon Jan 17, 2024
6a55091
Rename LearningHub Database-CI.yml to azure-pipeline-database-ci.yml
binon Jan 17, 2024
c4bb351
Rename azure-pipeline-openApi-reportApi-CI.yml to azure-pipeline-open…
binon Jan 17, 2024
59d465e
Delete azure-pipelines-webui-ci.yml
binon Jan 17, 2024
53753aa
Merge pull request #2 from TechnologyEnhancedLearning/CI
binon Jan 17, 2024
f62a59f
Update master check trigger
binon Jan 17, 2024
289e7aa
Update CI check trigger
binon Jan 17, 2024
fdd4c61
Merge pull request #3 from TechnologyEnhancedLearning/CI
binon Jan 17, 2024
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
30 changes: 30 additions & 0 deletions .github/azure-pipeline-database-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
trigger:
- CI
resources:
repositories:
- repository: self
type: git
ref: refs/heads/CI
jobs:
- job: Job_1
displayName: Agent job
pool:
vmImage: windows-2019
steps:
- checkout: self
clean: true
fetchTags: false
- task: MSBuild@1
displayName: Build solution **/LearningHub.Nhs.Database.sqlproj
inputs:
solution: '**/LearningHub.Nhs.Database.sqlproj'
msbuildArchitecture: x64
- task: CopyFiles@2
displayName: Copy SQL Dacpac File
inputs:
SourceFolder: $(agent.builddirectory)\s
Contents: '**\LearningHub.Nhs.Database.dacpac'
TargetFolder: $(build.artifactstagingdirectory)
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'
...
85 changes: 85 additions & 0 deletions .github/azure-pipeline-openapi-reportapi-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# Agent Queue 'Azure Pipelines' was used with unrecognized Agent Specification, vmImage property must be specified to determine image - https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml#software
variables:
- name: BuildParameters.RestoreBuildProjects
value: '**/*.csproj'
- name: BuildParameters.projects
value: '**/*.csproj'
trigger:
- CI
name: $(date:yyyyMMdd)$(rev:.r)
resources:
repositories:
- repository: self
type: git
ref: refs/heads/RC
jobs:
- job: Job_1
displayName: Agent job
pool:
vmImage: windows-latest
steps:
- checkout: self
clean: true
fetchTags: false
- task: NuGetToolInstaller@1
displayName: Use NuGet 5.8
inputs:
versionSpec: 5.8
- task: NuGetCommand@2
displayName: NuGet restore
inputs:
feedRestore: d99eaf2c-ad74-4a35-876e-f7dc1e45a604
- task: DotNetCoreCLI@2
displayName: Restore
inputs:
command: restore
projects: $(BuildParameters.RestoreBuildProjects)
feedRestore: d99eaf2c-ad74-4a35-876e-f7dc1e45a604
- task: DotNetCoreCLI@2
displayName: Build
inputs:
projects: $(BuildParameters.projects)
arguments: --configuration $(BuildConfiguration) /p:Platform=x64
- task: DotNetCoreCLI@2
displayName: Test OpenAPI
inputs:
command: test
projects: '**/*LearningHub.Nhs.OpenApi.Tests.csproj'
arguments: --configuration Debug
- task: DotNetCoreCLI@2
displayName: Test ReportAPI
inputs:
command: test
projects: '**/*LearningHub.Nhs.ReportApi.Services.UnitTests.csproj'
arguments: --configuration Debug
- task: DotNetCoreCLI@2
displayName: Publish OpenAPI
inputs:
command: publish
publishWebProjects: false
projects: '**/*LearningHub.NHS.OpenAPI.csproj'
arguments: --configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)/OpenAPI
zipAfterPublish: True
- task: PublishBuildArtifacts@1
displayName: Publish Artifact OpenAPI
condition: succeededOrFailed()
inputs:
PathtoPublish: $(build.artifactstagingdirectory)/OpenAPI
ArtifactName: OpenAPI
TargetPath: '\\my\share\$(Build.DefinitionName)\$(Build.BuildNumber)'
- task: DotNetCoreCLI@2
displayName: Publish ReportAPI
inputs:
command: publish
publishWebProjects: false
projects: '**/*LearningHub.Nhs.ReportApi.csproj'
arguments: --configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)/ReportAPI
zipAfterPublish: True
- task: PublishBuildArtifacts@1
displayName: Publish Artifact ReportAPI
condition: succeededOrFailed()
inputs:
PathtoPublish: $(build.artifactstagingdirectory)/ReportAPI
ArtifactName: ReportAPI
TargetPath: '\\my\share\$(Build.DefinitionName)\$(Build.BuildNumber)'
...
112 changes: 112 additions & 0 deletions .github/azure-pipeline-webui-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
# Variable Group 'UAT - Variable Group' was defined in the Variables tab
variables:
- name: BuildParameters.RestoreBuildProjects
value: '**/*.csproj'
- name: BuildParameters.TestProjects
value: '**/*[Tt]ests/*.csproj'
trigger:
- CI
name: $(date:yyyyMMdd)$(rev:.r)
resources:
repositories:
- repository: self
type: git
ref: refs/heads/CI
jobs:
- job: Job_1
displayName: Agent job
pool:
vmImage: windows-latest
steps:
- checkout: self
clean: true
fetchTags: true
- task: NodeTool@0
displayName: Use Node 12.19 (otherwise node-sass 4.13 will error - Azure build agent defaults to v14.15 which is incompatible)
inputs:
versionSpec: 12.19
- task: Npm@1
displayName: npm custom
inputs:
command: custom
workingDir: LearningHub.Nhs.WebUI
verbose: false
customCommand: install -f
- task: Npm@1
displayName: run webpack build
inputs:
command: custom
workingDir: LearningHub.Nhs.WebUI
verbose: false
customCommand: run build
- task: NuGetToolInstaller@1
displayName: Use NuGet 5.8
inputs:
versionSpec: 5.8
- task: NuGetCommand@2
displayName: NuGet restore
inputs:
feedRestore: d99eaf2c-ad74-4a35-876e-f7dc1e45a604
- task: DotNetCoreCLI@2
displayName: Restore
inputs:
command: restore
projects: $(BuildParameters.RestoreBuildProjects)
- task: DotNetCoreCLI@2
displayName: Build
inputs:
projects: $(BuildParameters.RestoreBuildProjects)
arguments: --configuration $(BuildConfiguration)
- task: DotNetCoreCLI@2
displayName: Test
enabled: False
inputs:
command: test
projects: $(BuildParameters.TestProjects)
arguments: --configuration $(BuildConfiguration)
- task: DotNetCoreCLI@2
displayName: Publish WebUI
inputs:
command: publish
publishWebProjects: false
projects: '**/*LearningHub.Nhs.WebUI.csproj'
arguments: --configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)/WebUI
zipAfterPublish: True
- task: PublishBuildArtifacts@1
displayName: Publish Artifact WebUI
condition: succeededOrFailed()
inputs:
PathtoPublish: $(Build.ArtifactStagingDirectory)/WebUI
ArtifactName: WebUI
TargetPath: '\\my\share\$(Build.DefinitionName)\$(Build.BuildNumber)'
- task: DotNetCoreCLI@2
displayName: Publish AdminUI
inputs:
command: publish
publishWebProjects: false
projects: '**/*LearningHub.Nhs.AdminUI.csproj'
arguments: --configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)/AdminUI
zipAfterPublish: True
- task: PublishBuildArtifacts@1
displayName: Publish Artifact AdminUI
condition: succeededOrFailed()
inputs:
PathtoPublish: $(Build.ArtifactStagingDirectory)/AdminUI
ArtifactName: AdminUI
TargetPath: '\\my\share\$(Build.DefinitionName)\$(Build.BuildNumber)'
- task: DotNetCoreCLI@2
displayName: Publish WebAPI
inputs:
command: publish
publishWebProjects: false
projects: '**/*LearningHub.Nhs.Api.csproj'
arguments: --configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)/WebAPI
zipAfterPublish: True
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact WebAPI '
condition: succeededOrFailed()
inputs:
PathtoPublish: $(Build.ArtifactStagingDirectory)/WebAPI
ArtifactName: WebAPI
TargetPath: '\\my\share\$(Build.DefinitionName)\$(Build.BuildNumber)'
...
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Introduction
# Introduction
This is the official open-source repository for the [Learning Hub](https://learninghub.nhs.uk/) platform.

The Learning Hub is the national digital learning platform providing easy access to a wide range of educational resources and support for the health and care workforce and educators.
Expand Down Expand Up @@ -92,7 +92,7 @@ Create a Local IIS launch profile for the following projects:
- LearningHub.Nhs.AdminUI = https://lh-admin.dev.local
- LearningHub.Nhs.WebAPI = https://lh-api.dev.local
- LearningHub.Nhs.WebUI = https://lh-web.dev.local
7. Tick the checkbox for **Enable Anonymous Authentication**.
7. Tick the checkbox for **Enable Anonymous Authentication**.

## Rebuild and run

Expand Down