|
76 | 76 | # Configures the deployment environment, install dependencies (like node, npm, etc.) that are requirements for the upcoming jobs
|
77 | 77 | # Ex: Necessary to run `yarn deploy`
|
78 | 78 | 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 |
81 | 81 | steps:
|
82 | 82 | - name: Installing node.js
|
83 | 83 | uses: actions/setup-node@v2 # Used to install node environment - https://github.com/actions/setup-node
|
|
88 | 88 | # The default customer is the one defined in the `vercel.json` file (which is a symlink to the actual file)
|
89 | 89 | # N.B: It's Vercel that will perform the actual deployment
|
90 | 90 | 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 |
93 | 93 | needs: setup-environment
|
94 | 94 | timeout-minutes: 40 # Limit current job timeout https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes
|
95 | 95 | steps:
|
@@ -119,7 +119,7 @@ jobs:
|
119 | 119 | 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
|
120 | 120 |
|
121 | 121 | - 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 |
123 | 123 | with:
|
124 | 124 | command: "yarn deploy:ci:gha:production --token ${{ secrets.VERCEL_TOKEN }}"
|
125 | 125 | env:
|
@@ -154,8 +154,8 @@ jobs:
|
154 | 154 |
|
155 | 155 | # Waits for the Vercel deployment to reach "READY" state, so that other actions will be applied on a domain that is really online
|
156 | 156 | 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 |
159 | 159 | needs: start-production-deployment
|
160 | 160 | 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
|
161 | 161 | steps:
|
@@ -185,8 +185,8 @@ jobs:
|
185 | 185 |
|
186 | 186 | # Send a HTTP call to the webhook url that's provided in the customer configuration file (vercel.*.json)
|
187 | 187 | 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 |
190 | 190 | needs: await-for-vercel-deployment
|
191 | 191 | timeout-minutes: 5 # Limit current job timeout https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes
|
192 | 192 | steps:
|
@@ -264,8 +264,8 @@ jobs:
|
264 | 264 |
|
265 | 265 | # Runs E2E tests against the Vercel deployment
|
266 | 266 | 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 |
269 | 269 | # Docker image with Cypress pre-installed
|
270 | 270 | # https://github.com/cypress-io/cypress-docker-images/tree/master/included
|
271 | 271 | container: cypress/included:7.4.0
|
@@ -314,8 +314,8 @@ jobs:
|
314 | 314 |
|
315 | 315 | # Runs LightHouse reports in parallel of E2E tests
|
316 | 316 | 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 |
319 | 319 | needs: await-for-vercel-deployment
|
320 | 320 | timeout-minutes: 5 # Limit current job timeout https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes
|
321 | 321 | steps:
|
|
0 commit comments