diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 06f67b8..3795ba1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,7 @@ concurrency: cancel-in-progress: true jobs: - check: + checks: runs-on: ubuntu-latest timeout-minutes: 10 permissions: @@ -24,7 +24,7 @@ jobs: node-version-file: 'package.json' - run: npm ci - name: Run checks - run: npm run check + run: npm run checks test: runs-on: ubuntu-latest @@ -50,7 +50,7 @@ jobs: run: npm run test build: - needs: test + needs: [checks, test] runs-on: ubuntu-latest timeout-minutes: 10 permissions: diff --git a/package.json b/package.json index 0f86e14..504442e 100644 --- a/package.json +++ b/package.json @@ -55,10 +55,10 @@ }, "scripts": { "docs:generate": "tsdoc --src=src/contexts/*,src/hooks/* --dest=docs/API.md --noemoji --types", - "check:eslint": "eslint --cache .", - "check:format": "prettier --cache --check .", - "check:types": "tsc", - "check": "npm-run-all --parallel --continue-on-error --print-label --aggregate-output check:*", + "checks:eslint": "eslint --cache .", + "checks:format": "prettier --cache --check .", + "checks:types": "tsc", + "checks": "npm-run-all --parallel --continue-on-error --print-label --aggregate-output checks:*", "prepack": "tshy", "prepare": "husky", "test": "vitest run"