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

pkg.json test script #77

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

louisinger
Copy link
Collaborator

@louisinger louisinger commented Oct 26, 2022

  • former test script is now renamed as test:ci (check formatting, prettier, lint etc...)
  • a new test lets to launch unit and integration tests

it closes #60

@tiero @altafan please review

@tiero
Copy link
Member

tiero commented Oct 31, 2022

need to change the github action?

@altafan
Copy link
Collaborator

altafan commented Oct 31, 2022

cc @louisinger

@louisinger
Copy link
Collaborator Author

UPDATE

test:ci script has been renamed checks

@@ -37,7 +37,8 @@
"nobuild:unit": "npm run mocha:ts -- --timeout 60000 'test/*.ts'",
"prettier": "prettier 'ts_src/**/*.ts' 'test/**/*.ts' --ignore-path ./.prettierignore",
"prettierjs": "prettier 'src/**/*.js' --ignore-path ./.prettierignore",
"test": "npm run build && npm run format:ci && npm run lint && npm run nobuild:coverage",
"checks": "npm run build && npm run format:ci && npm run lint && npm run nobuild:coverage",
"test": "npm run build && npm run nobuild:unit && npm run nobuild:integration",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"test": "npm run build && npm run nobuild:unit && npm run nobuild:integration",
"test": "npm run nobuild:unit && npm run nobuild:integration",

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@louisinger we should use these commands in the gh action.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@louisinger we should use these commands in the gh action.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better to keep several steps in the GH actions, test is for local testing only @altafan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Simplify the pkg.json scripts
3 participants