mirror of https://github.com/aminya/setup-cpp
test: run the jest tests in parallel
This commit is contained in:
parent
ba2c47a569
commit
4eb56b89c0
|
@ -6,6 +6,8 @@ You will need [`pnpm`](https://pnpm.io/installation) to build and test `setup-cp
|
||||||
pnpm install
|
pnpm install
|
||||||
```
|
```
|
||||||
|
|
||||||
|
To avoid permenant changes to your system, you can use the test docker images under `./dev/docker/__tests__`.
|
||||||
|
|
||||||
Before running the tests locally, backup your environment variables because faulty code might corrupt the environment.
|
Before running the tests locally, backup your environment variables because faulty code might corrupt the environment.
|
||||||
|
|
||||||
<https://stackoverflow.com/a/5147185/7910299>
|
<https://stackoverflow.com/a/5147185/7910299>
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
"test.lint": "run-p --aggregate-output --continue-on-error lint.cspell test.lint.eslint test.lint.prettier lint.tsc",
|
"test.lint": "run-p --aggregate-output --continue-on-error lint.cspell test.lint.eslint test.lint.prettier lint.tsc",
|
||||||
"test.lint.eslint": "eslint **/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml} --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/",
|
"test.lint.eslint": "eslint **/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml} --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/",
|
||||||
"test.lint.prettier": "prettier . --check",
|
"test.lint.prettier": "prettier . --check",
|
||||||
"test": "jest --runInBand",
|
"test": "jest",
|
||||||
"build.docker_tests": "node ./dev/docker/__tests__/generate-docker-tests.mjs",
|
"build.docker_tests": "node ./dev/docker/__tests__/generate-docker-tests.mjs",
|
||||||
"build.docker.arch": "pnpm build.docker_tests && docker build -f ./dev/docker/__tests__/arch.dockerfile -t setup-cpp:arch .",
|
"build.docker.arch": "pnpm build.docker_tests && docker build -f ./dev/docker/__tests__/arch.dockerfile -t setup-cpp:arch .",
|
||||||
"build.docker.fedora": "pnpm build.docker_tests && docker build -f ./dev/docker/__tests__/fedora.dockerfile -t setup-cpp:fedora .",
|
"build.docker.fedora": "pnpm build.docker_tests && docker build -f ./dev/docker/__tests__/fedora.dockerfile -t setup-cpp:fedora .",
|
||||||
|
|
Loading…
Reference in New Issue