lostcity-engine/.github/workflows/engine.yml
Pazaz 18675b00bf chore: Replaced bcrypt with bcrypt-ts
Tests: Worse, but not significantly. No reliance on node-gyp makes it a better choice.
```
package	op	rounds	mean ms	ops/sec
bcrypt	hash	10	52.59	19.02
bcrypt-ts	hash	10	56.36	17.74
bcrypt	compare match	10	50.47	19.81
bcrypt-ts	compare match	10	63.01	15.87
```

Forks should consider using `bcrypt` if they encounter a significant amount of traffic, where every bit helps, and they don't have to worry about ease of use.
2026-05-25 11:01:30 -04:00

32 lines
491 B
YAML

name: Verify Engine Code
on:
pull_request:
push:
paths:
- '.github/workflows/engine.yml'
- 'package.json'
- 'package-lock.json'
- 'src/**'
- 'tools/**'
workflow_dispatch:
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24
cache: npm
- run: npm ci
- name: Lint
run: npm run lint
- name: Compile
run: npx tsc --noEmit