@@ -86,78 +86,77 @@ jobs:
8686 python_version : " ${{ needs.metadata.outputs.python_version }}"
8787 terraform_version : " ${{ needs.metadata.outputs.terraform_version }}"
8888 version : " ${{ needs.metadata.outputs.version }}"
89- test-stage : # Recommended maximum execution time is 5 minutes
90- name : ' Test stage'
91- needs : [metadata]
92- uses : ./.github/workflows/stage-2-test.yaml
93- with :
94- unit_test_dir : tests/UnitTests
95- app_dir : application/CohortManager
96- build_datetime : ' ${{ needs.metadata.outputs.build_datetime }}'
97- build_timestamp : ' ${{ needs.metadata.outputs.build_timestamp }}'
98- build_epoch : ' ${{ needs.metadata.outputs.build_epoch }}'
99- nodejs_version : ' ${{ needs.metadata.outputs.nodejs_version }}'
100- python_version : ' ${{ needs.metadata.outputs.python_version }}'
101- terraform_version : ' ${{ needs.metadata.outputs.terraform_version }}'
102- version : ' ${{ needs.metadata.outputs.version }}'
103- secrets : inherit
104- analysis-stage : # Recommended maximum execution time is 5 minutes
105- name : " Analysis stage"
106- needs : [metadata, commit-stage, test-stage]
107- uses : ./.github/workflows/stage-2-analyse.yaml
108- secrets :
109- sonar_token : ${{ secrets.SONAR_TOKEN }}
110- with :
111- unit_test_dir : tests/UnitTests
112- build_datetime : " ${{ needs.metadata.outputs.build_datetime }}"
113- build_timestamp : " ${{ needs.metadata.outputs.build_timestamp }}"
114- build_epoch : " ${{ needs.metadata.outputs.build_epoch }}"
115- nodejs_version : " ${{ needs.metadata.outputs.nodejs_version }}"
116- python_version : " ${{ needs.metadata.outputs.python_version }}"
117- terraform_version : " ${{ needs.metadata.outputs.terraform_version }}"
118- version : " ${{ needs.metadata.outputs.version }}"
89+ # test-stage: # Recommended maximum execution time is 5 minutes
90+ # name: 'Test stage'
91+ # needs: [metadata]
92+ # uses: ./.github/workflows/stage-2-test.yaml
93+ # with:
94+ # unit_test_dir: tests/UnitTests
95+ # app_dir: application/CohortManager
96+ # build_datetime: '${{ needs.metadata.outputs.build_datetime }}'
97+ # build_timestamp: '${{ needs.metadata.outputs.build_timestamp }}'
98+ # build_epoch: '${{ needs.metadata.outputs.build_epoch }}'
99+ # nodejs_version: '${{ needs.metadata.outputs.nodejs_version }}'
100+ # python_version: '${{ needs.metadata.outputs.python_version }}'
101+ # terraform_version: '${{ needs.metadata.outputs.terraform_version }}'
102+ # version: '${{ needs.metadata.outputs.version }}'
103+ # secrets: inherit
104+ # analysis-stage: # Recommended maximum execution time is 5 minutes
105+ # name: "Analysis stage"
106+ # needs: [metadata, commit-stage, test-stage]
107+ # uses: ./.github/workflows/stage-2-analyse.yaml
108+ # secrets:
109+ # sonar_token: ${{ secrets.SONAR_TOKEN }}
110+ # with:
111+ # unit_test_dir: tests/UnitTests
112+ # build_datetime: "${{ needs.metadata.outputs.build_datetime }}"
113+ # build_timestamp: "${{ needs.metadata.outputs.build_timestamp }}"
114+ # build_epoch: "${{ needs.metadata.outputs.build_epoch }}"
115+ # nodejs_version: "${{ needs.metadata.outputs.nodejs_version }}"
116+ # python_version: "${{ needs.metadata.outputs.python_version }}"
117+ # terraform_version: "${{ needs.metadata.outputs.terraform_version }}"
118+ # version: "${{ needs.metadata.outputs.version }}"
119119 build-image-stage : # Recommended maximum execution time is 3 minutes
120120 name : " Image build stage"
121- needs : [metadata, commit-stage, test-stage, analysis-stage]
121+ needs : [metadata, commit-stage] # [metadata, commit-stage , test-stage, analysis-stage]
122122 uses : ./.github/workflows/stage-3-build-images-devtest.yaml
123123 secrets :
124124 client_id : ${{ secrets.AZURE_CLIENT_ID }}
125125 tenant_id : ${{ secrets.AZURE_TENANT_ID }}
126126 subscription_id : ${{ secrets.AZURE_SUBSCRIPTION_ID }}
127127 acr_devtest_name : ${{ secrets.ACR_DEVTEST_NAME }}
128- if : needs.metadata.outputs.does_pull_request_exist == 'true' || (github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'reopened'))
129128 with :
130129 docker_compose_file : application/CohortManager/compose.yaml
131130 excluded_containers_csv_list : azurite,azurite-setup,sql-server
132131 environment_tag : ${{ needs.metadata.outputs.environment_tag }}
133132 function_app_source_code_path : application/CohortManager/src
134133 project_name : cohort-manager
135134 build_all_images : true
136- deploy-stage :
137- if : contains(github.event.pull_request.labels.*.name, 'deploy')
138- name : Deploy review app pr-${{ github.event.pull_request.number }}
139- needs : [build-image-stage]
140- permissions :
141- id-token : write
142- contents : read
143- uses : ./.github/workflows/stage-4-deploy.yaml
144- with :
145- environments : ' ["review"]'
146- commit_sha : ${{ github.event.pull_request.head.sha }}
147- pr_number : ${{ github.event.pull_request.number }}
148- secrets : inherit
149- post-url :
150- if : contains(github.event.pull_request.labels.*.name, 'deploy')
151- name : Post URL pr-${{ github.event.pull_request.number }} to PR comments
152- runs-on : ubuntu-latest
153- needs : [deploy-stage]
154- permissions :
155- pull-requests : write
156- steps :
157- - name : Post URL to PR comments
158- uses : marocchino/sticky-pull-request-comment@5060d4700a91de252c87eeddd2da026382d9298a
159- with :
160- message : |
161- The review app is available at this URL:
162- https://pr-${{ github.event.pull_request.number }}.manage-breast-screening.non-live.screening.nhs.uk
163- You must authenticate with HTTP basic authentication. Ask the team for credentials.
135+ # deploy-stage:
136+ # if: contains(github.event.pull_request.labels.*.name, 'deploy')
137+ # name: Deploy review app pr-${{ github.event.pull_request.number }}
138+ # needs: [build-image-stage]
139+ # permissions:
140+ # id-token: write
141+ # contents: read
142+ # uses: ./.github/workflows/stage-4-deploy.yaml
143+ # with:
144+ # environments: '["review"]'
145+ # commit_sha: ${{ github.event.pull_request.head.sha }}
146+ # pr_number: ${{ github.event.pull_request.number }}
147+ # secrets: inherit
148+ # post-url:
149+ # if: contains(github.event.pull_request.labels.*.name, 'deploy')
150+ # name: Post URL pr-${{ github.event.pull_request.number }} to PR comments
151+ # runs-on: ubuntu-latest
152+ # needs: [deploy-stage]
153+ # permissions:
154+ # pull-requests: write
155+ # steps:
156+ # - name: Post URL to PR comments
157+ # uses: marocchino/sticky-pull-request-comment@5060d4700a91de252c87eeddd2da026382d9298a
158+ # with:
159+ # message: |
160+ # The review app is available at this URL:
161+ # https://pr-${{ github.event.pull_request.number }}.manage-breast-screening.non-live.screening.nhs.uk
162+ # You must authenticate with HTTP basic authentication. Ask the team for credentials.
0 commit comments