Skip to content

Commit

Permalink
feature #94 [BREAKING] Drop support for Node.js 10 and 12, ensure in …
Browse files Browse the repository at this point in the history
…the CI tests are run under multiple Node.js versions (Kocal)

This PR was squashed before being merged into the main branch.

Discussion
----------

[BREAKING] Drop support for Node.js 10 and 12, ensure in the CI tests are run under multiple Node.js versions

Let's _modernize_ this repository 🙌🏻

Starting first with CI improvments

Commits
-------

0db4ba3 [BREAKING] Drop support for Node.js 10 and 12, ensure in the CI tests are run under multiple Node.js versions
  • Loading branch information
Kocal committed Jan 9, 2025
2 parents 771a077 + 0db4ba3 commit 9bf462e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,23 @@ jobs:
yarn run check-format
tests:
name: Tests (Node.js ${{ matrix.node-versions }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-versions: [ '14', '16', '18', '20', '22', '23' ]
steps:
- uses: actions/checkout@master
- name: Install dependencies
run: yarn
- name: Checkout
uses: actions/checkout@v4

- name: Node ${{matrix.node-versions}}
uses: actions/setup-node@v4
with:
node-version: ${{matrix.node-versions}}

- name: Install Yarn Dependencies
run: yarn install

- name: Tests
run: yarn test
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"license": "MIT",
"author": "Titouan Galopin <[email protected]>",
"engines": {
"node": "^10.13.0 || >=12.0.0"
"node": "^14.15.0 || ^16.10.0 || ^18.12.0 || ^20.0.0 || >=22.0"
},
"scripts": {
"build": "yarn rollup -c",
Expand Down Expand Up @@ -53,6 +53,9 @@
"webpack": "^5.11.1",
"webpack-cli": "^4.3.0"
},
"resolutions": {
"@types/jest": "^27.0"
},
"eslintConfig": {
"root": true,
"parser": "@typescript-eslint/parser",
Expand Down

0 comments on commit 9bf462e

Please sign in to comment.