Skip to content

Commit

Permalink
Update minimum Node version to 22 (#990)
Browse files Browse the repository at this point in the history
* Update dependencies

* Node 22 is now the new minimum version.

* changelog.

* Begin porting eslint to new config format.

* Make linter happy.

* Update reqwest to fix SSL issue?

* Fix test types

* quick check on ubuntu LTS 24.04

* Change cache key

* update rust action

* revert mocha due to esminess

* Remove the only usage of pqueue

* Use babel for TS transformations to get around ESM import bug.

* Dependency bundle upgrade

* Drop babel, not actually used.

* lint

* lint

* update default config (mostly sections moving around)
  • Loading branch information
Half-Shot authored Nov 28, 2024
1 parent 745699a commit 819c089
Show file tree
Hide file tree
Showing 66 changed files with 4,787 additions and 2,068 deletions.
60 changes: 0 additions & 60 deletions .eslintrc.js

This file was deleted.

12 changes: 5 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
profile: minimal
components: rustfmt
- run: cargo fmt --all -- --check
- run: cargo clippy -- -Dwarnings
Expand Down Expand Up @@ -66,23 +65,22 @@ jobs:

test:
# Test on LTS-1
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
node_version: [20, 21]
node_version: [22, 23]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
- uses: actions-rs/toolchain@v1
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
profile: minimal
- uses: Swatinem/rust-cache@v2
with:
shared-key: rust-cache
shared-key: ubuntu-2204-rust-cache
- run: yarn
- run: yarn test:cover

Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ public/
# Generated during build
/src/libRs.d.ts

# Generated during test run
/spec-lib
/hookshot-int-*

book
*.cer
*.pem
Expand Down
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20
22
Loading

0 comments on commit 819c089

Please sign in to comment.