Skip to content

Commit

Permalink
Remove Lerna and related root npm run scripts, fix types in rtm-api, …
Browse files Browse the repository at this point in the history
…only test against node 18 and 20 (#1649)
  • Loading branch information
filmaj authored Aug 24, 2023
1 parent 2c8c03e commit 4fdbd91
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 25 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI
name: Node.js Build and Test

on:
push:
branches:
- main
pull_request:

jobs:
build:

runs-on: ubuntu-latest
timeout-minutes: 10

strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]

node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run setup
- run: npm run test
# - run: npm run coverage
- name: Get Development Dependencies
run: npm i
- name: Build and Run Tests in Each Package
run: |
for pkg in packages/logger packages/oauth packages/rtm-api packages/socket-mode packages/types packages/web-api packages/webhook; do
pushd ${pkg}
npm install || npm list
npm test
popd
done
10 changes: 2 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
{
"scripts": {
"test": "lerna run test",
"lint": "lerna run lint",
"setup": "lerna bootstrap --no-ci --hoist",
"ref-docs": "lerna run ref-docs:model --no-bail; lerna run start --scope @slack/sdk-ref-docs"
},
"name": "node-slack-sdk",
"devDependencies": {
"eslint": "^7.32.0",
"eslint-plugin-jsdoc": "^30.6.1",
"lerna": "^5.5.0"
"eslint-plugin-jsdoc": "^30.6.1"
}
}
4 changes: 2 additions & 2 deletions packages/rtm-api/src/KeepAlive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ export class KeepAlive extends EventEmitter {
/**
* A timer for when to send the next ping if no other outgoing message is sent.
*/
private pingTimer?: NodeJS.Timer;
private pingTimer?: NodeJS.Timeout;

/**
* A timer for when to stop listening for an incoming event that acknowledges the ping (counts as a pong)
*/
private pongTimer?: NodeJS.Timer;
private pongTimer?: NodeJS.Timeout;

/**
* The message ID of the latest ping sent, or undefined is there hasn't been one sent.
Expand Down

0 comments on commit 4fdbd91

Please sign in to comment.