Skip to content

Commit

Permalink
refactor: move stress test and definition valdiation to tests/
Browse files Browse the repository at this point in the history
  • Loading branch information
leia-uwu committed Dec 11, 2023
1 parent 49951bd commit 653c002
Show file tree
Hide file tree
Showing 14 changed files with 944 additions and 835 deletions.
31 changes: 30 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,35 @@ jobs:
working-directory: ./server
run: pnpm build

tests:
name: Tests
runs-on: ubuntu-latest
concurrency: ci-tests-${{ github.ref }}

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'

- name: Install Packages
working-directory: ./tests
run: pnpm install --frozen-lockfile

- name: Build
working-directory: ./tests
run: pnpm build

- name: Validate object definitions
working-directory: ./server
working-directory: ./tests
run: pnpm validateDefinitions
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"postcss-preset-env": "^9.3.0",
"sass": "^1.69.5",
"sirv-cli": "^2.0.2",
"svgo": "^3.0.5",
"svgo": "^3.1.0",
"ts-node": "^10.9.2",
"tslib": "^2.6.2",
"typescript": "5.3.3",
Expand Down
6 changes: 3 additions & 3 deletions common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
},
"devDependencies": {
"@types/node": "^20.10.4",
"@typescript-eslint/eslint-plugin": "^6.13.2",
"@typescript-eslint/parser": "^6.13.2",
"@typescript-eslint/eslint-plugin": "^6.14.0",
"@typescript-eslint/parser": "^6.14.0",
"eslint": "^8.55.0",
"eslint-config-standard-with-typescript": "^42.0.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-n": "^16.3.1",
"eslint-plugin-n": "^16.4.0",
"eslint-plugin-promise": "^6.1.1"
}
}
File renamed without changes.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,24 @@
"dev": "pnpm -r dev",
"dev:client": "cd client && pnpm dev",
"dev:server": "cd server && pnpm dev",
"dev:test": "cd server && pnpm dev:test",
"dev:test": "cd tests && pnpm test",
"lint": "eslint . --fix --ext .js,.ts",
"lint:ci": "eslint . --ext .js,.ts",
"validateDefinitions": "cd server && pnpm validateDefinitions",
"full-reinstall": "rm -r node_modules pnpm-lock.yaml client/node_modules server/node_modules common/node_modules && pnpm install"
"validateDefinitions": "cd tests && tsc && pnpm validateDefinitions",
"full-reinstall": "rm -r node_modules pnpm-lock.yaml client/node_modules server/node_modules common/node_modules tests/node_modules && pnpm install"
},
"keywords": [
"nodejs",
"typescript"
],
"license": "GPL-3.0",
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.13.2",
"@typescript-eslint/parser": "^6.13.2",
"@typescript-eslint/eslint-plugin": "^6.14.0",
"@typescript-eslint/parser": "^6.14.0",
"eslint": "^8.55.0",
"eslint-config-standard-with-typescript": "^42.0.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-n": "^16.3.1",
"eslint-plugin-n": "^16.4.0",
"eslint-plugin-promise": "^6.1.1",
"typescript": "5.3.3"
}
Expand Down
Loading

0 comments on commit 653c002

Please sign in to comment.