Skip to content

Commit

Permalink
Switch from Travis CI to GitHub Actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
moll committed Aug 22, 2024
1 parent bbf24b8 commit 94f20cb
Show file tree
Hide file tree
Showing 3 changed files with 110 additions and 91 deletions.
109 changes: 109 additions & 0 deletions .github/workflows/node.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
name: Tests on Node.js
"on": [push, pull_request]

jobs:
test:
name: Node.js v${{matrix.node}}
runs-on: ubuntu-latest

strategy:
matrix:
node:
- "0.10"
- "0.11.13"

# v0.11.14 changed ReadableStream.prototype.resume. Also introduced
# writing binary strings.
- "0.11.14"
- "0.11"
- "0.12"
- "4"
- "5"
- "6.0.0"
- "6.3"

# v6.4 introduced writing latin1 strings.
- "6.4.0"
- "6"

# v7 changed the internal _normalizeConnectArgs's function name.
- "7.0.0"
- "7"
- "11.8"
- "8.11"

# v8.12 revamped parts of HTTP parsing.
- "8.12.0"
- "8"
- "9.5"

# v9.6 revamped parts of HTTP parsing just like v8.12.
- "9.6.0"
- "9"

# Node v10 requires InternalSocket.prototype.writev.
- "10.0.0"
- "10.15.0"

# Node v10.15.1 requires InternalSocket.prototype.shutdown.
- "10.15.1"
- "10"
- "11.0.0"

# v11.1 changed onStreamRead in stream_base_commons.js to get the
# byte count through a global structure.
- "11.1.0"

# v11.2 requires InternalSocket.prototype.shutdown.
- "11.2.0"
- "11.7"

# v11.8 requires InternalSocket.prototype.shutdown to return "0".
- "11.8.0"
- "11"
- "12.0.0"
- "12.3"

# v12.4 changed decoding the server response buffer to UCS-2 by no
# longer returning a string with 2 little-endian bytes in a String.
# Then again, this could be https://github.com/nodejs/node/pull/27936.
- "12.4"
- "12.16.2"

# v12.16.3 changed something in InternalSocket.prototype.shutdown or
# possibly WritableStream.prototype.end causing the "close" event to
# not be emitted.
# https://github.com/moll/node-mitm/issues/66
- "12.16.3"
- "12"
- "13"
- "14"
- "15"
- "16"
- "17"
- "18"
- "19"
- "20"
- "21"
- "22"

# IO.js required TlsSocket.prototype.getSession.
- "iojs"
- "iojs-v2.4.0"
- "iojs-v3.2.0"

steps:
- uses: actions/checkout@v3

- name: Install Node.js v${{matrix.versions.node}}
uses: actions/setup-node@v3
with:
node-version: "${{matrix.versions.node}}"
cache: npm
cache-dependency-path: package.json

- name: Install NPMs
run: npm install --no-package-lock

- name: Run tests
run: make spec
3 changes: 1 addition & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
/*.tgz
/tags
/.travis.yml
/.github/
89 changes: 0 additions & 89 deletions .travis.yml

This file was deleted.

0 comments on commit 94f20cb

Please sign in to comment.