Skip to content

Commit

Permalink
Merge pull request #691 from UKHSA-Internal/changes_to_how_packages_a…
Browse files Browse the repository at this point in the history
…re_built

Changed commands to install packages
  • Loading branch information
adebayoolabintan authored Oct 5, 2023
2 parents 95e242b + 281898d commit c26ee41
Showing 1 changed file with 18 additions and 19 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

0 comments on commit c26ee41

Please sign in to comment.