From 0e8394e7dbcfdb2eaa45be8396de1ef6a0101482 Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Sun, 14 Jun 2020 15:55:00 +0300 Subject: [PATCH] Move prettier down in the order of tests --- .github/workflows/ci.yml | 6 +++--- package.json | 17 ++++++++--------- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 43e09762f2..bc29d4253b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,15 +26,15 @@ jobs: - name: Install Dependencies run: npm ci - - name: Lint Prettier - run: npm run prettier:check - - name: Lint ESLint run: npm run lint - name: Lint Flow run: npm run check + - name: Lint Prettier + run: npm run prettier:check + - name: Spellcheck run: npm run check:spelling diff --git a/package.json b/package.json index becb015590..bd03ae75be 100644 --- a/package.json +++ b/package.json @@ -27,24 +27,23 @@ "node": ">= 10.x" }, "scripts": { - "test": "npm run prettier:check && npm run lint && npm run check && npm run testonly && npm run check:spelling && npm run build:npm && npm run build:deno && npm run check:integrations", - "test:ci": "npm run prettier:check && npm run lint -- --no-cache && npm run check && npm run testonly:cover && npm run check:spelling && npm run build:npm && npm run build:deno && npm run check:integrations", + "preversion": ". ./resources/checkgit.sh && npm ci", + "version": "node resources/gen-version.js && npm test && git add src/version.js", "fuzzonly": "mocha --full-trace src/**/__tests__/**/*-fuzz.js", + "changelog": "node resources/gen-changelog.js", + "benchmark": "node --noconcurrent_sweeping --expose-gc --predictable ./resources/benchmark.js", + "test": "npm run lint && npm run check && npm run testonly && npm run prettier:check && npm run check:spelling && npm run build:npm && npm run build:deno && npm run check:integrations", + "lint": "eslint --cache --ext .js,.ts src resources integrationTests", + "check": "flow check", + "check:cover": "node resources/check-cover.js && nyc report --nycrc-path .nycflowrc.yml", "testonly": "mocha --full-trace src/**/__tests__/**/*-test.js", "testonly:cover": "nyc npm run testonly", - "lint": "eslint --cache --ext .js,.ts src resources integrationTests", - "benchmark": "node --noconcurrent_sweeping --expose-gc --predictable ./resources/benchmark.js", "prettier": "prettier --ignore-path .gitignore --write --list-different \"**/*.{js,ts,md,json,yml}\"", "prettier:check": "prettier --ignore-path .gitignore --check \"**/*.{js,ts,md,json,yml}\"", - "check": "flow check", - "check:cover": "node resources/check-cover.js && nyc report --nycrc-path .nycflowrc.yml", "check:spelling": "cspell \"./{src/**/,resources/**/,integrationTests/**/}*.{js,ts,md,graphql}\"", "check:integrations": "mocha --full-trace integrationTests/*-test.js", "build:npm": "node resources/build-npm.js", "build:deno": "node resources/build-deno.js", - "changelog": "node resources/gen-changelog.js", - "preversion": ". ./resources/checkgit.sh && npm ci", - "version": "node resources/gen-version.js && npm test && git add src/version.js", "gitpublish:npm": "bash ./resources/gitpublish.sh npm npmDist", "gitpublish:deno": "bash ./resources/gitpublish.sh deno denoDist" },