Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sandbox -> development branch #692

Merged
merged 4 commits into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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.