Skip to content

Commit c5d5eb9

Browse files
committed
Update Ubuntu from 18.04 to latest (currently 20.04) (#396)
1 parent 06a6a37 commit c5d5eb9

File tree

6 files changed

+40
-39
lines changed

6 files changed

+40
-39
lines changed

.github/workflows/auto-git-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717

1818
jobs:
1919
tag-and-release:
20-
runs-on: ubuntu-18.04
20+
runs-on: ubuntu-latest
2121
timeout-minutes: 5 # Limit current job timeout https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes
2222
steps:
2323
- name: Expose GitHub slug/short variables # See https://github.com/rlespinasse/github-slug-action#exposed-github-environment-variables

.github/workflows/deploy-vercel-production.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ jobs:
7676
# Configures the deployment environment, install dependencies (like node, npm, etc.) that are requirements for the upcoming jobs
7777
# Ex: Necessary to run `yarn deploy`
7878
setup-environment:
79-
name: Setup deployment environment (Ubuntu 18.04 - Node 14.x)
80-
runs-on: ubuntu-18.04
79+
name: Setup deployment environment (Ubuntu latest - Node 14.x)
80+
runs-on: ubuntu-latest
8181
steps:
8282
- name: Installing node.js
8383
uses: actions/setup-node@v2 # Used to install node environment - https://github.com/actions/setup-node
@@ -88,8 +88,8 @@ jobs:
8888
# The default customer is the one defined in the `vercel.json` file (which is a symlink to the actual file)
8989
# N.B: It's Vercel that will perform the actual deployment
9090
start-production-deployment:
91-
name: Starts Vercel deployment (production) (Ubuntu 18.04)
92-
runs-on: ubuntu-18.04
91+
name: Starts Vercel deployment (production) (Ubuntu latest)
92+
runs-on: ubuntu-latest
9393
needs: setup-environment
9494
timeout-minutes: 40 # Limit current job timeout https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes
9595
steps:
@@ -119,7 +119,7 @@ jobs:
119119
no_override: true # Disables auto marking previous environments as "inactive", as they're still active (Vercel deployments don't auto-deactivate) and it would remove the previous deployment links needlessly
120120

121121
- name: Deploying on Vercel (${{ env.STAGE }})
122-
uses: UnlyEd/github-action-deploy-on-vercel@3e71d3e26fd56941fc24a6429fdd257598df2017 # Pin "v1.0.0" - See https://github.com/UnlyEd/github-action-deploy-on-vercel/commit/3e71d3e26fd56941fc24a6429fdd257598df2017
122+
uses: UnlyEd/github-action-deploy-on-vercel@94d41ec1ff9b5b1de5256312e385632b6fcd8fa4 # Pin "v1.2.1" - See https://github.com/UnlyEd/github-action-deploy-on-vercel/commit/94d41ec1ff9b5b1de5256312e385632b6fcd8fa4
123123
with:
124124
command: "yarn deploy:ci:gha:production --token ${{ secrets.VERCEL_TOKEN }}"
125125
env:
@@ -154,8 +154,8 @@ jobs:
154154
155155
# Waits for the Vercel deployment to reach "READY" state, so that other actions will be applied on a domain that is really online
156156
await-for-vercel-deployment:
157-
name: Await current deployment to be ready (Ubuntu 18.04)
158-
runs-on: ubuntu-18.04
157+
name: Await current deployment to be ready (Ubuntu latest)
158+
runs-on: ubuntu-latest
159159
needs: start-production-deployment
160160
timeout-minutes: 5 # Limit current job timeout (including action timeout setup down there) https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes
161161
steps:
@@ -185,8 +185,8 @@ jobs:
185185

186186
# Send a HTTP call to the webhook url that's provided in the customer configuration file (vercel.*.json)
187187
send-webhook-callback-once-deployment-ready:
188-
name: Invoke webhook callback url defined by the customer (Ubuntu 18.04)
189-
runs-on: ubuntu-18.04
188+
name: Invoke webhook callback url defined by the customer (Ubuntu latest)
189+
runs-on: ubuntu-latest
190190
needs: await-for-vercel-deployment
191191
timeout-minutes: 5 # Limit current job timeout https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes
192192
steps:
@@ -264,8 +264,8 @@ jobs:
264264

265265
# Runs E2E tests against the Vercel deployment
266266
run-2e2-tests:
267-
name: Run end to end (E2E) tests (Ubuntu 18.04)
268-
runs-on: ubuntu-18.04
267+
name: Run end to end (E2E) tests (Ubuntu latest)
268+
runs-on: ubuntu-latest
269269
# Docker image with Cypress pre-installed
270270
# https://github.com/cypress-io/cypress-docker-images/tree/master/included
271271
container: cypress/included:7.4.0
@@ -314,8 +314,8 @@ jobs:
314314

315315
# Runs LightHouse reports in parallel of E2E tests
316316
run-lighthouse-tests:
317-
name: Run LightHouse checks (Ubuntu 18.04)
318-
runs-on: ubuntu-18.04
317+
name: Run LightHouse checks (Ubuntu latest)
318+
runs-on: ubuntu-latest
319319
needs: await-for-vercel-deployment
320320
timeout-minutes: 5 # Limit current job timeout https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes
321321
steps:

.github/workflows/deploy-vercel-staging.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ jobs:
7676
# Configures the deployment environment, install dependencies (like node, npm, etc.) that are requirements for the upcoming jobs
7777
# Ex: Necessary to run `yarn deploy`
7878
setup-environment:
79-
name: Setup deployment environment (Ubuntu 18.04 - Node 14.x)
80-
runs-on: ubuntu-18.04
79+
name: Setup deployment environment (Ubuntu latest - Node 14.x)
80+
runs-on: ubuntu-latest
8181
steps:
8282
- name: Installing node.js
8383
uses: actions/setup-node@v2 # Used to install node environment - https://github.com/actions/setup-node
@@ -88,8 +88,8 @@ jobs:
8888
# The default customer is the one defined in the `vercel.json` file (which is a symlink to the actual file)
8989
# N.B: It's Vercel that will perform the actual deployment
9090
start-staging-deployment:
91-
name: Starts Vercel deployment (staging) (Ubuntu 18.04)
92-
runs-on: ubuntu-18.04
91+
name: Starts Vercel deployment (staging) (Ubuntu latest)
92+
runs-on: ubuntu-latest
9393
needs: setup-environment
9494
timeout-minutes: 40 # Limit current job timeout https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes
9595
steps:
@@ -202,8 +202,8 @@ jobs:
202202
203203
# Waits for the Vercel deployment to reach "READY" state, so that other actions will be applied on a domain that is really online
204204
await-for-vercel-deployment:
205-
name: Await current deployment to be ready (Ubuntu 18.04)
206-
runs-on: ubuntu-18.04
205+
name: Await current deployment to be ready (Ubuntu latest)
206+
runs-on: ubuntu-latest
207207
needs: start-staging-deployment
208208
timeout-minutes: 5 # Limit current job timeout (including action timeout setup down there) https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes
209209
steps:
@@ -233,8 +233,8 @@ jobs:
233233

234234
# Send a HTTP call to the webhook url that's provided in the customer configuration file (vercel.*.json)
235235
send-webhook-callback-once-deployment-ready:
236-
name: Invoke webhook callback url defined by the customer (Ubuntu 18.04)
237-
runs-on: ubuntu-18.04
236+
name: Invoke webhook callback url defined by the customer (Ubuntu latest)
237+
runs-on: ubuntu-latest
238238
needs: await-for-vercel-deployment
239239
timeout-minutes: 5 # Limit current job timeout https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes
240240
steps:
@@ -312,8 +312,8 @@ jobs:
312312

313313
# Runs E2E tests against the Vercel deployment
314314
run-2e2-tests:
315-
name: Run end to end (E2E) tests (Ubuntu 18.04)
316-
runs-on: ubuntu-18.04
315+
name: Run end to end (E2E) tests (Ubuntu latest)
316+
runs-on: ubuntu-latest
317317
# Docker image with Cypress pre-installed
318318
# https://github.com/cypress-io/cypress-docker-images/tree/master/included
319319
container: cypress/included:7.4.0
@@ -386,8 +386,8 @@ jobs:
386386

387387
# Runs LightHouse reports in parallel of E2E tests
388388
run-lighthouse-tests:
389-
name: Run LightHouse checks (Ubuntu 18.04)
390-
runs-on: ubuntu-18.04
389+
name: Run LightHouse checks (Ubuntu latest)
390+
runs-on: ubuntu-latest
391391
needs: await-for-vercel-deployment
392392
timeout-minutes: 5 # Limit current job timeout https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes
393393
steps:

.github/workflows/deploy-vercel-storybook.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ jobs:
5656
# Configures the deployment environment, install dependencies (like node, npm, etc.) that are requirements for the upcoming jobs
5757
# Ex: Necessary to run `yarn deploy`
5858
setup-environment:
59-
name: Setup deployment environment (Ubuntu 18.04 - Node 14.x)
60-
runs-on: ubuntu-18.04
59+
name: Setup deployment environment (Ubuntu latest - Node 14.x)
60+
runs-on: ubuntu-latest
6161
steps:
6262
- name: Installing node.js
6363
uses: actions/setup-node@v2 # Used to install node environment - https://github.com/actions/setup-node
@@ -67,8 +67,8 @@ jobs:
6767
# Starts a Vercel deployment, using the storybook configuration file
6868
# N.B: It's Vercel that will perform the actual deployment
6969
start-deployment:
70-
name: Starts Vercel deployment (Ubuntu 18.04)
71-
runs-on: ubuntu-18.04
70+
name: Starts Vercel deployment (Ubuntu latest)
71+
runs-on: ubuntu-latest
7272
timeout-minutes: 40 # Limit current job timeout https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes
7373
needs: setup-environment
7474
steps:
@@ -155,9 +155,9 @@ jobs:
155155
156156
# Waits for the Vercel deployment to reach "READY" state, so that other actions will be applied on a domain that is really online
157157
await-for-vercel-deployment:
158-
name: Await current deployment to be ready (Ubuntu 18.04)
158+
name: Await current deployment to be ready (Ubuntu latest)
159159
timeout-minutes: 5 # Limit current job timeout https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes
160-
runs-on: ubuntu-18.04
160+
runs-on: ubuntu-latest
161161
needs: start-deployment
162162
steps:
163163
- uses: actions/checkout@v1 # Get last commit pushed - See https://github.com/actions/checkout
@@ -186,9 +186,9 @@ jobs:
186186

187187
# Runs E2E tests against the Vercel deployment
188188
run-2e2-tests:
189-
name: Run end to end (E2E) tests (Ubuntu 18.04)
189+
name: Run end to end (E2E) tests (Ubuntu latest)
190190
timeout-minutes: 20 # Limit current job timeout https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes
191-
runs-on: ubuntu-18.04
191+
runs-on: ubuntu-latest
192192
# Docker image with Cypress pre-installed
193193
# https://github.com/cypress-io/cypress-docker-images/tree/master/included
194194
container: cypress/included:7.4.0

.github/workflows/update-codeclimate-coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818
# Configures the deployment environment, install dependencies (like node, npm, etc.) that are requirements for the upcoming jobs
1919
# Ex: Necessary to run `yarn test:coverage`
2020
setup-environment:
21-
name: Setup deployment environment (Ubuntu 18.04 - Node 14.x)
22-
runs-on: ubuntu-18.04
21+
name: Setup deployment environment (Ubuntu latest - Node 14.x)
22+
runs-on: ubuntu-latest
2323
steps:
2424
- name: Installing node.js
2525
uses: actions/setup-node@v2 # Used to install node environment - XXX https://github.com/actions/setup-node

cypress/integration/app/common/footer.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ describe('Common > Footer section', () => {
2121
cy.get('#footer-logo-unly-brand').should('have.length', 1);
2222
});
2323

24-
it('should have the customer logo in the footer', () => {
25-
cy.get('#footer-logo').should('have.length', 1);
26-
});
24+
// Disabled because footer logo can be removed by anyone on the public demo and this makes tests crash for no valid reason (annoying)
25+
// it('should have the customer logo in the footer', () => {
26+
// cy.get('#footer-logo').should('have.length', 1);
27+
// });
2728

2829
it('should display the i18n button to change language', () => {
2930
cy.get<Customer>('@customer').then((customer: Customer) => {

0 commit comments

Comments
 (0)