Compare commits

...

5 Commits

Author SHA1 Message Date
9913eaef8f
Workflow: Add npx back to eslint command
All checks were successful
Node.js CI / build (18.x) (push) Successful in 4m34s
Node.js CI / build (20.x) (push) Successful in 3m23s
Node.js CI / build (22.x) (push) Successful in 3m17s
2025-05-16 23:52:51 -05:00
d9f4177011
Run eslint on all .js files 2025-05-16 23:48:25 -05:00
4bba924ed8
Workflow: Run eslint instead of "npm run test" 2025-05-16 23:36:44 -05:00
0ea26f3142 Clean up unused dependencies 2025-05-16 23:28:43 -05:00
c25a722fa0
GitHub Actions Testing 2025-05-16 20:44:31 -05:00
3 changed files with 321 additions and 4126 deletions

31
.github/workflows/node.js.yml vendored Normal file
View File

@ -0,0 +1,31 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Node.js CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npx eslint . --ext .js

4401
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -7,22 +7,13 @@
"dependencies": {
"@discordjs/opus": "^0.10.0",
"@discordjs/voice": "^0.18.0",
"@mapbox/node-pre-gyp": "^2.0.0",
"bufferutil": "^4.0.9",
"discord.js": "^14.19.3",
"dotenv": "^16.5.0",
"erlpack": "github:discordapp/erlpack",
"ffmpeg-static": "^5.2.0",
"install-peerdeps": "^3.0.7",
"install-peers": "^1.0.4",
"libsodium-wrappers": "^0.7.15",
"opusscript": "^0.1.1",
"xmlhttprequest": "^1.8.0",
"zlib-sync": "^0.1.10"
"sodium": "^3.0.2"
},
"devDependencies": {
"@eslint/js": "^9.26.0",
"eslint": "^9.26.0",
"@eslint/js": "^9.27.0",
"eslint": "^9.27.0",
"globals": "^16.1.0"
}
}