Skip to content

Commit 4c41379

Browse files
authored
Merge pull request #31 from probot/add-ci
Add ci.yml
2 parents bf5fcc6 + 83aa8df commit 4c41379

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Node CI
2+
3+
on: [push]
4+
5+
jobs:
6+
test:
7+
strategy:
8+
matrix:
9+
node: ['12.x', '10.x', '8.x']
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
# Setup the local repo
15+
- uses: actions/checkout@v1
16+
17+
# Setup Node.js with the correct version
18+
- name: Use Node.js ${{ matrix.node }}
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: ${{ matrix.node }}
22+
23+
# Cache dependencies
24+
- uses: actions/cache@v1
25+
with:
26+
path: ~/.npm
27+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
28+
restore-keys: |
29+
${{ runner.os }}-node-
30+
31+
# Install dependencies
32+
- run: npm ci
33+
34+
# Run tests
35+
- run: npm test

0 commit comments

Comments
 (0)