Skip to content

Commit

Permalink
feat: always build before testing
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjibansg committed Dec 7, 2023
1 parent 2ce2306 commit c013471
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: substraitJS test
name: substraitJS

on: [push, pull_request]

Expand Down Expand Up @@ -26,9 +26,6 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Build project
run: npm run build

- name: Run tests
run: npm run test

1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@ nvm use 18.0.0
substrait -p ../plan.json -o <output path>
```

## Testing
Jest is used for testing the visualization functionality of the library. To run the test, we need
to use `nvm v18.0.0`
```
source ~/.nvm/nvm.sh
nvm use 18.0.0
npm run test
```

## License
[Apache-2.0 license](https://www.apache.org/licenses/LICENSE-2.0)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"prepare": "npm run clean-proto && npm run proto && npm run transpileProto",
"lint": "eslint '**/*.ts'",
"lint:fix": "npm run lint -- --fix",
"test": "$HOME/.nvm/nvm-exec jest"
"test": "npm run build && jest"
},
"author": "",
"license": "Apache-2.0",
Expand Down

0 comments on commit c013471

Please sign in to comment.