Skip to content

Commit

Permalink
drop support for node < 16
Browse files Browse the repository at this point in the history
  • Loading branch information
mansona committed Nov 9, 2023
1 parent 4086737 commit abf2e70
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 7 deletions.
31 changes: 26 additions & 5 deletions .github/workflows/CI.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,17 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["12"]
node-version:
- 16
- 18
- 20

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- run: yarn install --frozen-lockfile --non-interactive
- run: yarn test

Expand All @@ -41,12 +46,17 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["12"]
node-version:
- 16
- 18
- 20

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- run: yarn install --frozen-lockfile --non-interactive
- run: PREFER_NATIVE=true yarn test

Expand All @@ -56,12 +66,17 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["12"]
node-version:
- 16
- 18
- 20

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- run: yarn install --frozen-lockfile --non-interactive
- run: NATIVE_PROMISE=true yarn test

Expand All @@ -71,12 +86,17 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["12"]
node-version:
- 16
- 18
- 20

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- run: yarn install --frozen-lockfile --non-interactive
- run: yarn run test:node

Expand Down Expand Up @@ -105,8 +125,9 @@ jobs:
allow-failure: true
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v4
with:
node-version: 12.x
node-version: 16
- name: install dependencies
run: yarn install
- name: test
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"typescript": "^4.1.3"
},
"engines": {
"node": ">= 10"
"node": "16.x || 18.x || >=20.x "
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
Expand All @@ -102,7 +102,7 @@
]
},
"volta": {
"node": "10.24.1",
"node": "16.20.2",
"yarn": "1.22.10"
}
}

0 comments on commit abf2e70

Please sign in to comment.