Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix benchmark tool, create new shell script to compile, run and t… #106

Merged
merged 5 commits into from
Sep 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
run: yarn lint:check
- name: Check Coding Style
run: yarn style:check
- name: Run benchmark
run: yarn benchmark
- name: Test with Coverage
run: |
# Check coverage, if coverage is below 100% for any files exit & print a message
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ node_modules/
# dist
/dist

benchmark/*.js
tests/compiled
tests/compiled
benchmark/compiled
7 changes: 7 additions & 0 deletions benchmark/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "../tsconfig.json",
"include": ["**/*"],
"compilerOptions": {
"outDir": "./compiled"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"style:check": "yarn prettier . --check",
"style:fix": "yarn prettier . --write",
"test": "./scripts/run-tests.sh",
"benchmark": "ts-node ./benchmark/index.ts"
"benchmark": "./scripts/run-benchmark.sh"
},
"repository": {
"type": "git",
Expand Down
8 changes: 8 additions & 0 deletions scripts/run-benchmark.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

set -e

trap "rm -rf ./benchmark/compiled" EXIT

yarn tsc --project benchmark
node ./benchmark/compiled/benchmark/index.js