Skip to content

Commit f82e454

Browse files
committed
Tests in CI fix
1 parent f4b8733 commit f82e454

File tree

13 files changed

+17
-19
lines changed

13 files changed

+17
-19
lines changed

.github/workflows/glhf-ecs.yml renamed to .github/workflows/gamedev-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# 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
22
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
33

4-
name: GLHF ECS
4+
name: Tests
55

66
on:
77
push:
@@ -27,4 +27,4 @@ jobs:
2727
cache: 'npm'
2828
- run: npm i
2929
#- run: npm run build --if-present
30-
- run: npm run test
30+
- run: npm run test-ci

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
],
1616
"scripts": {
1717
"build": "nx run-many -t build",
18-
"test": "nx run-many -t test",
18+
"test-ci": "nx run-many -t test",
1919
"lint": "nx run-many -t lint"
2020
},
2121
"devDependencies": {

packages/assets/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
},
1111
"main": "src/index.ts",
1212
"scripts": {
13-
"build": "echo \"Error: no build specified for glhf-assets yet.\"",
14-
"test": "echo \"Error: no test specified for glhf-assets yet.\""
13+
"build": "echo \"Error: no build specified for assets yet.\"",
14+
"test": "echo \"Error: no test specified for assets yet.\""
1515
},
1616
"devDependencies": {
1717
"@eslint/js": "^9.4.0",

packages/bitmask/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"main": "./src/bitmask.ts",
1313
"scripts": {
1414
"build": "esbuild ./src/bitmask.ts --bundle --outfile=dist/bitmask.js",
15-
"test": "vitest --globals",
15+
"test": "vitest --watch=false",
1616
"lint": "eslint ./src"
1717
},
1818
"devDependencies": {

packages/component/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
},
1212
"main": "./src/index.ts",
1313
"scripts": {
14-
"build": "echo \"Error: no build specified for @serbanghita-gamedev/component yet.\"",
15-
"test": "echo \"Error: no test specified for @serbanghita-gamedev/component yet.\"",
14+
"build": "echo \"Error: no build specified for component yet.\"",
15+
"test": "echo \"Error: no test specified for component yet.\"",
1616
"lint": "eslint ./src"
1717
},
1818
"devDependencies": {

packages/ecs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"scripts": {
1717
"build": "esbuild ./src/index.ts --bundle --outfile=dist/ecs.js",
18-
"test": "vitest --globals --config vite.config.ts",
18+
"test": "vitest --watch=false",
1919
"lint": "eslint ./src"
2020
},
2121
"devDependencies": {

packages/fsm/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "glhf-fsm",
2+
"name": "@serbanghita/fsm",
33
"description": "Finite State Machine that supports registering custom states, state priority and queued states.",
44
"version": "1.0.0",
55
"scripts": {

packages/geometry/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"main": "./src/index.ts",
1313
"scripts": {
1414
"build": "esbuild ./src/index.ts --bundle --outfile=dist/geometry.js",
15-
"test": "vitest --globals",
15+
"test": "echo \"Error: no test specified for assets yet.\"",
1616
"lint": "eslint ./src"
1717
},
1818
"devDependencies": {

packages/input/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"description": "Library for managing Input (Keyboard, Mouse, Controllers)",
55
"main": "./src/index.ts",
66
"scripts": {
7-
"build": "echo \"Error: no build specified for glhf-input yet.\"",
8-
"test": "echo \"Error: no test specified for glhf-input yet.\""
7+
"build": "echo \"Error: no build specified for input yet.\"",
8+
"test": "echo \"Error: no test specified for input yet.\""
99
},
1010
"author": "Serban Ghita <[email protected]> (https://ghita.org)",
1111
"license": "MIT",

packages/matrix/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"main": "./src/index.ts",
1313
"scripts": {
1414
"build": "esbuild ./src/index.ts --bundle --outfile=dist/matrix.js",
15-
"test": "vitest --globals",
15+
"test": "vitest --watch=false",
1616
"lint": "eslint ./src"
1717
},
1818
"devDependencies": {

packages/quadtree/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
"type": "module",
1616
"scripts": {
1717
"build": "esbuild ./src/index.ts --bundle --outfile=dist/quadtree.js",
18-
"demo": "esbuild ../demos/quadtree-mouse/src/demo.ts --bundle --sourcemap --watch --outfile=demo/demo.js --servedir=demo",
19-
"demo2": "esbuild ../demos/quadtree-dynamic-points/src/demo2.ts --bundle --sourcemap --watch --outfile=demo2/demo2.js --servedir=demo2",
20-
"test": "vitest --globals",
18+
"test": "vitest --watch=false",
2119
"lint": "eslint ./src"
2220
}
2321
}

packages/renderer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"scripts": {
55
"build": "webpack --mode development",
66
"dev": "webpack --mode development --watch",
7-
"test": "echo \"Error: no test specified for glhf-renderer yet.\""
7+
"test": "echo \"Error: no test specified for renderer yet.\""
88
},
99
"author": "Serban Ghita",
1010
"license": "MIT",

packages/tiled/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"main": "./src/index.ts",
1313
"scripts": {
1414
"build": "esbuild ./src/index.ts --bundle --outfile=dist/tiled.js",
15-
"test": "vitest --globals",
15+
"test": "echo \"Error: no test specified for assets yet.\"",
1616
"lint": "eslint ./src"
1717
},
1818
"devDependencies": {

0 commit comments

Comments
 (0)