Skip to content

Commit

Permalink
Drop support for Node.js 0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Nov 15, 2021
1 parent 0c8e01d commit 9c76f59
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 19 deletions.
20 changes: 2 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ on:

jobs:
test:
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
strategy:
matrix:
name:
- Node.js 0.6
- Node.js 0.8
- Node.js 0.10
- Node.js 0.12
Expand All @@ -33,11 +32,6 @@ jobs:
- Node.js 17.x

include:
- name: Node.js 0.6
node-version: "0.6"
npm-i: [email protected]
npm-rm: nyc

- name: Node.js 0.8
node-version: "0.8"
npm-i: [email protected]
Expand Down Expand Up @@ -119,21 +113,11 @@ jobs:
- name: Install Node.js ${{ matrix.node-version }}
shell: bash -eo pipefail -l {0}
run: |
if [[ "${{ matrix.node-version }}" == 0.6* ]]; then
sudo apt-get install g++-4.8 gcc-4.8 libssl1.0-dev
export CC=/usr/bin/gcc-4.8
export CXX=/usr/bin/g++-4.8
fi
nvm install --default ${{ matrix.node-version }}
if [[ "${{ matrix.node-version }}" == 0.* && "$(cut -d. -f2 <<< "${{ matrix.node-version }}")" -lt 10 ]]; then
nvm install --alias=npm 0.10
nvm use ${{ matrix.node-version }}
if [[ "$(npm -v)" == 1.1.* ]]; then
nvm exec npm npm install -g [email protected]
ln -fs "$(which npm)" "$(dirname "$(nvm which npm)")/npm"
else
sed -i '1s;^.*$;'"$(printf '#!%q' "$(nvm which npm)")"';' "$(readlink -f "$(which npm)")"
fi
sed -i '1s;^.*$;'"$(printf '#!%q' "$(nvm which npm)")"';' "$(readlink -f "$(which npm)")"
npm config set strict-ssl false
fi
dirname "$(nvm which ${{ matrix.node-version }})" >> "$GITHUB_PATH"
Expand Down
1 change: 1 addition & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
2.x
===

* Drop support for Node.js 0.6
* Remove `I'mateapot` export; use `ImATeapot` instead

2021-11-14 / 1.8.1
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"nyc": "15.1.0"
},
"engines": {
"node": ">= 0.6"
"node": ">= 0.8"
},
"scripts": {
"lint": "eslint . && node ./scripts/lint-readme-list.js",
Expand Down

0 comments on commit 9c76f59

Please sign in to comment.