Skip to content

Commit e21b933

Browse files
committed
Add Github Actions CI
1 parent a677640 commit e21b933

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
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" />

0 commit comments

Comments
 (0)