Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
5066d10
Update continuous-integration-workflow.yml to run on PR rather than push
kevwhitt-hee Jan 10, 2024
87236b9
Update continuous-integration-workflow.yml to run on push
kevwhitt-hee Jan 10, 2024
37005de
Adding user GUID
binon Jan 15, 2024
fc86b7e
Set up CI with Azure Pipelines
binon Jan 16, 2024
eaea20e
Update README.md
binon Jan 16, 2024
b71df1c
Update Program.cs
binon Jan 16, 2024
13fc952
Update azure-pipelines-ci.yml for Azure Pipelines
binon Jan 16, 2024
7c906c1
Update azure-pipelines-ci.yml for Azure Pipelines
binon Jan 16, 2024
f661efe
Update azure-pipelines-ci.yml for Azure Pipelines
binon Jan 16, 2024
8c995e2
Update azure-pipelines-ci.yml for Azure Pipelines
binon Jan 16, 2024
69775b2
Update azure-pipelines-ci.yml for Azure Pipelines
binon Jan 16, 2024
f51d198
Update azure-pipelines-ci.yml for Azure Pipelines
binon Jan 16, 2024
c487128
Update Program.cs
binon Jan 16, 2024
3e0644a
Update azure-pipelines-ci.yml for Azure Pipelines
binon Jan 16, 2024
25ea22b
Update Program.cs
binon Jan 16, 2024
05e37a0
Delete azure-pipelines-ci.yml
binon Jan 16, 2024
e947636
Set up CI with Azure Pipelines
binon Jan 16, 2024
cc0a0c2
Update Program.cs
binon Jan 16, 2024
eda5049
Update azure-pipelines-ci.yml for Azure Pipelines
binon Jan 16, 2024
f1e9abb
Update Program.cs
binon Jan 16, 2024
83c6912
Update azure-pipelines-ci.yml for Azure Pipelines
binon Jan 16, 2024
3f21aa0
Update Program.cs
binon Jan 16, 2024
8c61f4c
Update azure-pipelines-ci.yml for Azure Pipelines
binon Jan 16, 2024
77d4a17
Update Program.cs
binon Jan 16, 2024
b8fca91
Update README.md
binon Jan 16, 2024
933c76f
Create azure-pipelines-ci.yml
binon Jan 16, 2024
16985f7
Delete azure-pipelines-ci.yml
binon Jan 16, 2024
6aa886a
Trigger master
binon Jan 16, 2024
c41500c
trigger ci
binon Jan 16, 2024
76328f9
Update azure-pipelines-ci.yml for Azure Pipelines
binon Jan 16, 2024
c7b854c
Update README.md
binon Jan 16, 2024
88396c7
Merge pull request #4 from TechnologyEnhancedLearning/CI
binon Jan 16, 2024
ae81cda
Update Program.cs
binon Jan 16, 2024
1e98c98
Merge pull request #6 from TechnologyEnhancedLearning/RC
binon Jan 17, 2024
335b511
Removed the space
binon Jan 22, 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
97 changes: 97 additions & 0 deletions .github/azure-pipelines-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
# 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.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: false
- task: NodeTool@0
displayName: Use Node 12.19
inputs:
versionSpec: 12.19
- task: Npm@1
displayName: npm custom
inputs:
command: custom
workingDir: Auth/LearningHub.Nhs.Auth
verbose: false
customCommand: install -f
- task: Npm@1
displayName: run webpack build
inputs:
command: custom
workingDir: Auth/LearningHub.Nhs.Auth
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) /p:Platform=x64
- task: DotNetCoreCLI@2
displayName: Test
enabled: False
inputs:
command: test
projects: $(BuildParameters.TestProjects)
arguments: --configuration $(BuildConfiguration)
- task: DotNetCoreCLI@2
displayName: Publish Auth
inputs:
command: publish
publishWebProjects: false
projects: '**/*LearningHub.Nhs.Auth.csproj'
arguments: --configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)/Auth
zipAfterPublish: True
- task: PublishBuildArtifacts@1
displayName: Publish Artifact Auth
condition: succeededOrFailed()
inputs:
PathtoPublish: $(build.artifactstagingdirectory)/Auth
ArtifactName: Auth
TargetPath: '\\my\share\$(Build.DefinitionName)\$(Build.BuildNumber)'
- task: DotNetCoreCLI@2
displayName: Publish UserAPI
inputs:
command: publish
publishWebProjects: false
projects: '**/*LearningHub.Nhs.UserApi.csproj'
arguments: --configuration $(BuildConfiguration) --output $(build.artifactstagingdirectory)/UserAPI
zipAfterPublish: True
- task: PublishBuildArtifacts@1
displayName: Publish Artifact UserAPI
condition: succeededOrFailed()
inputs:
PathtoPublish: $(build.artifactstagingdirectory)/UserAPI
ArtifactName: UserAPI
TargetPath: '\\my\share\$(Build.DefinitionName)\$(Build.BuildNumber)'
...
6 changes: 3 additions & 3 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/) user profile and authentication service.

This repository is used to provide user authentication for the main [Learning Hub repository](https://github.com/TechnologyEnhancedLearning/LearningHub.Nhs.WebUI).
Expand Down Expand Up @@ -148,12 +148,12 @@ Go to: **Tools > NuGet Package Manager > Manage NuGet Packages for Solution > Co

Click the **+** button to create a new package source with name `LHPackages` and source: https://pkgs.dev.azure.com/e-LfH/_packaging/LearningHubFeed/nuget/v3/index.json

## Rebuild and run
## Rebuild and run

1. Rebuild the solution
2. Set **LearningHub.Nhs.WebUI** as the startup Project
3. Start debugging.


# Contribute
If you are interested in contributing to the Learning Hub, please contact [support@learninghub.nhs.uk](mailto:support@learninghub.nhs.uk)
If you are interested in contributing to the Learning Hub, please contact [support@learninghub.nhs.uk](mailto:support@learninghub.nhs.uk)