Compare commits

...

2 Commits

Author SHA1 Message Date
Julien Fontanet
9e695b7aa0 debug 2022-12-01 18:18:50 +01:00
Julien Fontanet
e5797ed4fb feat: run all tests in CI 2022-11-30 14:53:14 +01:00
3 changed files with 5 additions and 7 deletions

View File

@@ -15,10 +15,8 @@ RUN /bin/bash -c "source $NVM_DIR/nvm.sh && nvm install $NODE_VERSION && nvm use
ENV NODE_PATH $NVM_DIR/versions/node/$NODE_VERSION/lib/node_modules
ENV PATH $NVM_DIR/versions/node/$NODE_VERSION/bin:$PATH
RUN npm install -g yarn
RUN npm install -g yarn
WORKDIR /xen-orchestra
# invalidate build on package change
COPY ./yarn.lock /xen-orchestra/yarn.lock
ENTRYPOINT yarn ci
ENTRYPOINT yarn ci

View File

@@ -81,7 +81,7 @@
"private": true,
"scripts": {
"build": "scripts/run-script.js --parallel --concurrency 2 build",
"ci": "yarn && yarn build && yarn test-lint && yarn test-integration",
"ci": "yarn && yarn build && yarn test && yarn test-integration",
"clean": "scripts/run-script.js --parallel clean",
"dev": "scripts/run-script.js --parallel --concurrency 0 --verbose dev",
"dev-test": "jest --bail --watch \"^(?!.*\\.integ\\.spec\\.js$)\"",
@@ -89,7 +89,7 @@
"docs:build": "vuepress build docs",
"prepare": "husky install",
"prettify": "prettier --ignore-path .gitignore --write '**/*.{cjs,js,jsx,md,mjs,ts,tsx}'",
"test": "npm run test-lint && npm run test-unit",
"test": "yarn run test-lint && yarn run test-unit",
"test-integration": "jest \".integ\\.spec\\.js$\"",
"test-lint": "eslint --ignore-path .gitignore --ignore-pattern packages/xo-web .",
"test-unit": "jest \"^(?!.*\\.integ\\.spec\\.js$)\" && scripts/run-script.js --bail test"

View File

@@ -157,7 +157,7 @@
"dev": "cross-env NODE_ENV=development yarn run _build --watch",
"prepublishOnly": "yarn run build",
"start": "node dist/cli.mjs",
"pretest": "yarn run build",
"pretest": "id >&2; yarn run build",
"test": "tap 'dist/**/*.spec.mjs'"
},
"author": {