Skip to content

Commit b076dbb

Browse files
ci: migrate to GitHub Actions
Due to the recent changes to the Travis CI platform (see [1]), we will now use GitHub Actions to run the tests. Reference: https://docs.github.com/en/free-pro-team@latest/actions/guides/building-and-testing-nodejs [1]: https://blog.travis-ci.com/2020-11-02-travis-ci-new-billing
1 parent 7c380d3 commit b076dbb

File tree

3 files changed

+46
-21
lines changed

3 files changed

+46
-21
lines changed

Diff for: .github/workflows/ci.yml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: '0 0 * * 0'
8+
9+
jobs:
10+
test-node:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [10.x, 12.x, 14.x]
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
- run: npm ci
24+
- run: npm test
25+
env:
26+
CI: true
27+
28+
test-browser:
29+
runs-on: ubuntu-latest
30+
31+
steps:
32+
- uses: actions/checkout@v2
33+
- name: Use Node.js
34+
uses: actions/setup-node@v1
35+
with:
36+
node-version: '10.x'
37+
- run: npm ci
38+
- run: npm test
39+
env:
40+
CI: true
41+
BROWSERS: 1
42+
NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }}
43+
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
44+
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
45+
timeout-minutes: 20

Diff for: .travis.yml

-20
This file was deleted.

Diff for: Readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# socket.io-parser
33

4-
[![Build Status](https://secure.travis-ci.org/socketio/socket.io-parser.svg?branch=master)](http://travis-ci.org/socketio/socket.io-parser)
4+
[![Build Status](https://github.com/socketio/socket.io-parser/workflows/CI/badge.svg)](https://github.com/socketio/socket.io-parser/actions)
55
[![NPM version](https://badge.fury.io/js/socket.io-parser.svg)](http://badge.fury.io/js/socket.io-parser)
66

77
A socket.io encoder and decoder written in JavaScript complying with version `5`

0 commit comments

Comments
 (0)