From 9c76f594350cade8b6e0d8311cea2c607f7a9d45 Mon Sep 17 00:00:00 2001 From: Douglas Christopher Wilson Date: Mon, 29 Jun 2020 22:16:29 -0400 Subject: [PATCH] Drop support for Node.js 0.6 --- .github/workflows/ci.yml | 20 ++------------------ HISTORY.md | 1 + package.json | 2 +- 3 files changed, 4 insertions(+), 19 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 02eb6ef..a25bb69 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -33,11 +32,6 @@ jobs: - Node.js 17.x include: - - name: Node.js 0.6 - node-version: "0.6" - npm-i: mocha@1.21.5 - npm-rm: nyc - - name: Node.js 0.8 node-version: "0.8" npm-i: mocha@2.5.3 @@ -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 npm@1.1 - 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" diff --git a/HISTORY.md b/HISTORY.md index 260a924..f13b713 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -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 diff --git a/package.json b/package.json index df52507..8b707da 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "nyc": "15.1.0" }, "engines": { - "node": ">= 0.6" + "node": ">= 0.8" }, "scripts": { "lint": "eslint . && node ./scripts/lint-readme-list.js",