Skip to content

Commit

Permalink
Merge pull request #692 from UKHSA-Internal/sandbox
Browse files Browse the repository at this point in the history
Sandbox -> development branch
  • Loading branch information
adebayoolabintan authored Oct 5, 2023
2 parents 2d1cba5 + c26ee41 commit 1b3d6b1
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 76 deletions.
37 changes: 18 additions & 19 deletions .github/workflows/sandbox.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


name: Deploy Dashboard (Static Website) to Sandbox Environment.
name: Deploy Dashboard (Static Website) to Sandbox Environment.
###
on:
push:
Expand All @@ -23,21 +23,20 @@ jobs:
node-version: '14'
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
- name : Installs Dependancies

- name : Installs Dependancies
run: |
npm install --package-lock=false
yarn install --production=true --no-lockfile
npm ci
- name : Build
env:
CI: false
BASE_URL: 'https://sandbox.coronavirus.data.gov.uk'
MAIN_CDN: 'sandbox.coronavirus.data.gov.uk'
DOWNLOADS_CDN: 'sandbox.coronavirus.data.gov.uk'
API_ENDPOINT: 'sandbox.coronavirus.data.gov.uk/api'
USER_API_ENDPOINT: 'api-sandbox.coronavirus.data.gov.uk'
CI: false
BASE_URL: 'https://sandbox.coronavirus.data.gov.uk'
MAIN_CDN: 'sandbox.coronavirus.data.gov.uk'
DOWNLOADS_CDN: 'sandbox.coronavirus.data.gov.uk'
API_ENDPOINT: 'sandbox.coronavirus.data.gov.uk/api'
USER_API_ENDPOINT: 'api-sandbox.coronavirus.data.gov.uk'
APPINSIGHTS_INSTRUMENTATIONKEY: '0ab69a6e-1f5f-4c00-95a4-805490645471'
BUILD_ENV: sandbox
NODE_ENV: sandbox
Expand All @@ -52,8 +51,8 @@ jobs:
uses: azure/login@v1
with:
creds: ${{secrets.AZURE_CREDENTIALS}}
enable-AzPSSession: true
enable-AzPSSession: true

- name: Copy Build Files to $web Container in Static Strorage Account
uses: azure/powershell@v1
with:
Expand All @@ -70,7 +69,7 @@ jobs:




test:
runs-on: ubuntu-latest
name: Automated Smoke Test of COVID19 Dashboard Website
Expand Down Expand Up @@ -103,8 +102,8 @@ jobs:
# {
# # The index.html gets a different cache setting than all the other files
# $cacheControl = "no-cache"
# }
# else
# }
# else
# {
# $cacheControl = "max-age=604800"
# }
Expand All @@ -125,10 +124,10 @@ jobs:
# {
# # The index.html gets a different cache setting than all the other files
# $cacheControl = "no-cache"
# }
# else
# }
# else
# {
# # Set the cache control and content type of svg image blobs
# # Set the cache control and content type of svg image blobs
# $cacheControl = "max-age=604800"
# $contentType = "image/svg+xml"
# }
Expand Down
121 changes: 64 additions & 57 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1b3d6b1

Please sign in to comment.