Skip to content

Commit a4667fa

Browse files
authored
Merge pull request #133 from pusher/github-actions
Switch from travis to Github Actions
2 parents f27c710 + 2abbef0 commit a4667fa

File tree

3 files changed

+38
-22
lines changed

3 files changed

+38
-22
lines changed

.github/workflows/test.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Tests
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [master, main]
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-20.04
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
node: [10.x, 10.x, 12.x, 14.x]
15+
16+
name: Node.js ${{ matrix.node }} Test
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v2
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v2
24+
with:
25+
node-version: ${{ matrix.node }}
26+
27+
- name: Install dependencies
28+
run: npm ci
29+
30+
- name: Run linter
31+
run: npm run lint
32+
33+
- name: Run test suite
34+
run: npm test
35+
env:
36+
PUSHER_URL: ${{ secrets.INTEGRATION_TESTS_PUSHER_URL }}

.travis.yml

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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://travis-ci.org/pusher/pusher-http-node.svg?branch=master)](https://travis-ci.org/pusher/pusher-http-node)
1+
[![Build Status](https://github.com/pusher/pusher-http-node/workflows/Tests/badge.svg)](https://github.com/pusher/pusher-http-node/actions?query=workflow%3ATests+branch%3Amaster)
22
[![npm version](https://badge.fury.io/js/pusher.svg)](https://badge.fury.io/js/pusher)
33

44
# Pusher Channels Node.js REST library
@@ -15,7 +15,7 @@ If you find any compatibility issues, please [raise an issue](https://github.com
1515

1616
## Installation
1717

18-
You need to be running at least Node.js 8 to use this library.
18+
You need to be running at least Node.js 10 to use this library.
1919

2020
```
2121
$ npm install pusher

0 commit comments

Comments
 (0)