Skip to content

Commit 4b4e424

Browse files
Merge pull request #31 from cclauss/github-actions
GitHub Action to yarn lint and yarn test
2 parents 3865bd3 + f4dd22a commit 4b4e424

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing/building-and-testing-nodejs
2+
3+
name: ci
4+
on: [push, pull_request]
5+
jobs:
6+
ci:
7+
strategy:
8+
fail-fast: false
9+
matrix:
10+
node-version: ['12.x', '18.x', '20.x', 'lts/*', 'latest']
11+
runs-on: windows-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: ${{ matrix.node-version }}
17+
- run: yarn install --check-files # Force the upgrade of node-gyp.
18+
- run: yarn add standard
19+
- run: yarn lint # Fails on lots of lint errors
20+
continue-on-error: true
21+
- run: yarn test # "Error: no test specified"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
## Requirements
1111

12-
* nodejs 10+
12+
* nodejs 12+
1313
* Plenty of disk space, I see an average of 8kb per tick per room, by default this saves 200,000 ticks. So ~20MB per active room.
1414

1515
## Warning

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"ini": "^1.3.4",
2626
"lodash": "^4.17.4",
2727
"mkdirp": "^0.5.1",
28+
"node-gyp": "^9.4.1",
2829
"node-worker-threads-pool": "^1.4.3",
2930
"sequelize": "^6.5.0",
3031
"sqlite3": "^5.0.1"

0 commit comments

Comments
 (0)