Skip to content

Commit d570bcd

Browse files
authored
Merge pull request #472 from anajavi/ci/github-actions
Replace travis with github actions
2 parents 5926b49 + ae23ca7 commit d570bcd

File tree

2 files changed

+45
-19
lines changed

2 files changed

+45
-19
lines changed

.github/workflows/test.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: test
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
types: [opened, synchronize]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
services:
13+
redis:
14+
image: redis
15+
ports:
16+
- 6379:6379
17+
redis-cluster:
18+
image: grokzen/redis-cluster:latest
19+
ports:
20+
- 7000:7000
21+
- 7001:7001
22+
- 7002:7002
23+
- 7003:7003
24+
- 7004:7004
25+
- 7005:7005
26+
strategy:
27+
matrix:
28+
node-version: [lts/*]
29+
30+
steps:
31+
- name: Checkout
32+
uses: actions/checkout@v2
33+
34+
- name: Setup node
35+
uses: actions/setup-node@v2
36+
with:
37+
node-version: ${{ matrix.node-version }}
38+
cache: 'npm'
39+
40+
- name: Install dependencies
41+
run: npm ci
42+
43+
- name: Test
44+
run: npm test
45+

.travis.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)