Skip to content

Commit c224043

Browse files
authored
Merge pull request #39 from sanfrancesco/update-2022
Node.js 14, Deps update, Github Actions
2 parents 399e643 + c1b4e83 commit c224043

File tree

5 files changed

+1945
-2929
lines changed

5 files changed

+1945
-2929
lines changed

.github/workflows/node.js.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Node.js CI
5+
6+
on:
7+
push:
8+
branches: [master, github-ci]
9+
pull_request:
10+
branches: [master, github-ci]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
node-version: [12.x, 14.x, 16.x]
18+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
19+
steps:
20+
- uses: actions/checkout@v2
21+
- uses: actions/setup-node@v2
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
# cache: "npm"
25+
# cache-dependency-path: "package-lock.json"
26+
- uses: actions/cache@v2
27+
with:
28+
path: "**/node_modules"
29+
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
30+
# - name: Debugging with ssh
31+
# uses: lhotari/action-upterm@v1
32+
- run: npm install
33+
- run: make test

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22

33
# Prerender CloudFront (via AWS Lambda@Edge)
44

5+
![Github Actions CI](https://github.com/sanfrancesco/prerendercloud-lambda-edge/actions/workflows/node.js.yml/badge.svg)
6+
57
<a href="http://www.youtube.com/watch?feature=player_embedded&v=SsMNQ3EaNZ0
68
" target="_blank"><img src="https://img.youtube.com/vi/SsMNQ3EaNZ0/sddefault.jpg"
79
alt="4min how-to set up lambda@edge for pre-rendering" width="240" height="180" border="10" />
810
</a><br />
9-
4-minute YouTube video walk-through: [https://youtu.be/SsMNQ3EaNZ0](https://youtu.be/SsMNQ3EaNZ0)
11+
4-minute YouTube video walk-through (2022-04-25 update: AWS UI/UX has slightly changed since video but the video is still accurate): [https://youtu.be/SsMNQ3EaNZ0](https://youtu.be/SsMNQ3EaNZ0)
1012

1113
![image](https://cloud.githubusercontent.com/assets/22159102/21554484/9d542f5a-cdc4-11e6-8c4c-7730a9e9e2d1.png)
1214

@@ -55,7 +57,7 @@ Note, you **will not be creating** a CloudFront "custom error response" that red
5557

5658
#### 3. Install Dependencies
5759

58-
Node v10, and npm. (yarn is not sufficient)
60+
Node v14, and npm
5961

6062
`$ npm install`
6163

0 commit comments

Comments
 (0)