mirror of
https://github.com/socketio/socket.io.git
synced 2026-01-10 23:48:02 -05:00
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
This commit is contained in:
26
.github/workflows/ci.yml
vendored
Normal file
26
.github/workflows/ci.yml
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
schedule:
|
||||
- cron: '0 0 * * 0'
|
||||
|
||||
jobs:
|
||||
test-node:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [10.x, 12.x, 14.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- run: npm ci
|
||||
- run: npm test
|
||||
env:
|
||||
CI: true
|
||||
10
.travis.yml
10
.travis.yml
@@ -1,10 +0,0 @@
|
||||
sudo: false
|
||||
language: node_js
|
||||
node_js:
|
||||
- "10"
|
||||
- "12"
|
||||
- "14"
|
||||
git:
|
||||
depth: 1
|
||||
notifications:
|
||||
irc: "irc.freenode.org#socket.io"
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
# Engine.IO: the realtime engine
|
||||
|
||||
[](http://travis-ci.org/socketio/engine.io)
|
||||
[](https://github.com/socketio/engine.io/actions)
|
||||
[](http://badge.fury.io/js/engine.io)
|
||||
|
||||
`Engine.IO` is the implementation of transport-based
|
||||
|
||||
@@ -1059,7 +1059,7 @@ describe("server", function() {
|
||||
it("should trigger transport close before open for ws", function(done) {
|
||||
var opts = { transports: ["websocket"] };
|
||||
listen(opts, function(port) {
|
||||
var url = "ws://%s:%d".s("0.0.0.50", port);
|
||||
var url = "ws://%s:%d".s("0.0.0.0", port);
|
||||
var socket = new eioc.Socket(url);
|
||||
socket.on("open", function() {
|
||||
done(new Error("Test invalidation"));
|
||||
|
||||
Reference in New Issue
Block a user