Skip to content
This repository was archived by the owner on Sep 12, 2026. It is now read-only.

pkg.json test script - #77

Open
louisinger wants to merge 2 commits into
vulpemventures:masterfrom
louisinger:betterpkgjson
Open

louisinger wants to merge 2 commits into
vulpemventures:masterfrom
louisinger:betterpkgjson

Conversation

@louisinger

@louisinger louisinger commented Oct 26, 2022

Copy link
Copy Markdown
Collaborator
  • 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

tiero commented Oct 31, 2022

Copy link
Copy Markdown
Member

need to change the github action?

@altafan

altafan commented Oct 31, 2022

Copy link
Copy Markdown
Collaborator

cc @louisinger

@louisinger

Copy link
Copy Markdown
Collaborator Author

UPDATE

test:ci script has been renamed checks

Comment thread package.json
"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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Simplify the pkg.json scripts

3 participants