Skip to content

Commit

Permalink
Tests in CI fix
Browse files Browse the repository at this point in the history
  • Loading branch information
serbanghita committed Oct 15, 2024
1 parent f4b8733 commit f82e454
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 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: GLHF ECS
name: Tests

on:
push:
Expand All @@ -27,4 +27,4 @@ jobs:
cache: 'npm'
- run: npm i
#- run: npm run build --if-present
- run: npm run test
- run: npm run test-ci
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
],
"scripts": {
"build": "nx run-many -t build",
"test": "nx run-many -t test",
"test-ci": "nx run-many -t test",
"lint": "nx run-many -t lint"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
},
"main": "src/index.ts",
"scripts": {
"build": "echo \"Error: no build specified for glhf-assets yet.\"",
"test": "echo \"Error: no test specified for glhf-assets yet.\""
"build": "echo \"Error: no build specified for assets yet.\"",
"test": "echo \"Error: no test specified for assets yet.\""
},
"devDependencies": {
"@eslint/js": "^9.4.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/bitmask/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"main": "./src/bitmask.ts",
"scripts": {
"build": "esbuild ./src/bitmask.ts --bundle --outfile=dist/bitmask.js",
"test": "vitest --globals",
"test": "vitest --watch=false",
"lint": "eslint ./src"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
},
"main": "./src/index.ts",
"scripts": {
"build": "echo \"Error: no build specified for @serbanghita-gamedev/component yet.\"",
"test": "echo \"Error: no test specified for @serbanghita-gamedev/component yet.\"",
"build": "echo \"Error: no build specified for component yet.\"",
"test": "echo \"Error: no test specified for component yet.\"",
"lint": "eslint ./src"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/ecs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"scripts": {
"build": "esbuild ./src/index.ts --bundle --outfile=dist/ecs.js",
"test": "vitest --globals --config vite.config.ts",
"test": "vitest --watch=false",
"lint": "eslint ./src"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/fsm/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "glhf-fsm",
"name": "@serbanghita/fsm",
"description": "Finite State Machine that supports registering custom states, state priority and queued states.",
"version": "1.0.0",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/geometry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"main": "./src/index.ts",
"scripts": {
"build": "esbuild ./src/index.ts --bundle --outfile=dist/geometry.js",
"test": "vitest --globals",
"test": "echo \"Error: no test specified for assets yet.\"",
"lint": "eslint ./src"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/input/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"description": "Library for managing Input (Keyboard, Mouse, Controllers)",
"main": "./src/index.ts",
"scripts": {
"build": "echo \"Error: no build specified for glhf-input yet.\"",
"test": "echo \"Error: no test specified for glhf-input yet.\""
"build": "echo \"Error: no build specified for input yet.\"",
"test": "echo \"Error: no test specified for input yet.\""
},
"author": "Serban Ghita <[email protected]> (https://ghita.org)",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/matrix/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"main": "./src/index.ts",
"scripts": {
"build": "esbuild ./src/index.ts --bundle --outfile=dist/matrix.js",
"test": "vitest --globals",
"test": "vitest --watch=false",
"lint": "eslint ./src"
},
"devDependencies": {
Expand Down
4 changes: 1 addition & 3 deletions packages/quadtree/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
"type": "module",
"scripts": {
"build": "esbuild ./src/index.ts --bundle --outfile=dist/quadtree.js",
"demo": "esbuild ../demos/quadtree-mouse/src/demo.ts --bundle --sourcemap --watch --outfile=demo/demo.js --servedir=demo",
"demo2": "esbuild ../demos/quadtree-dynamic-points/src/demo2.ts --bundle --sourcemap --watch --outfile=demo2/demo2.js --servedir=demo2",
"test": "vitest --globals",
"test": "vitest --watch=false",
"lint": "eslint ./src"
}
}
2 changes: 1 addition & 1 deletion packages/renderer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"scripts": {
"build": "webpack --mode development",
"dev": "webpack --mode development --watch",
"test": "echo \"Error: no test specified for glhf-renderer yet.\""
"test": "echo \"Error: no test specified for renderer yet.\""
},
"author": "Serban Ghita",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/tiled/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"main": "./src/index.ts",
"scripts": {
"build": "esbuild ./src/index.ts --bundle --outfile=dist/tiled.js",
"test": "vitest --globals",
"test": "echo \"Error: no test specified for assets yet.\"",
"lint": "eslint ./src"
},
"devDependencies": {
Expand Down

0 comments on commit f82e454

Please sign in to comment.