diff --git a/.github/actions/cached-deps/action.yml b/.github/actions/cached-deps/action.yml index fc14f5c..6f3c9da 100644 --- a/.github/actions/cached-deps/action.yml +++ b/.github/actions/cached-deps/action.yml @@ -8,7 +8,7 @@ inputs: outputs: used-cache: description: "Whether the cache was used or not." - value: ${{ steps.install.outputs.cache }} + value: ${{ steps.set-output.outputs.used-cache }} runs: using: "composite" steps: @@ -23,6 +23,8 @@ runs: id: install if: steps.cache.outputs.cache-hit != 'true' || inputs.caching != 'true' shell: bash - run: | - npm ci - echo "cache='${{ inputs.caching }}'" >> $GITHUB_OUTPUT + run: npm ci + - name: Set output + id: set-output + shell: bash + run: echo "used-cache='${{ steps.cache.outputs.cache-hit }}'" >> $GITHUB_OUTPUT diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 98663a0..a32f72d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,7 +19,7 @@ jobs: - name: Load & cache dependencies uses: ./.github/actions/cached-deps - name: Run the linter - run: npm run lint + run: npm run lint -- --max-warnings=0 test: runs-on: ubuntu-latest steps: diff --git a/.husky/pre-commit b/.husky/pre-commit index af05b91..ea4bd58 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,3 +1,3 @@ # .husky/pre-commit -#prettier $(git diff --cached --name-only --diff-filter=ACMR | sed 's| |\\ |g') --write --ignore-unknown +prettier $(git diff --cached --name-only --diff-filter=ACMR | sed 's| |\\ |g') --write --ignore-unknown git update-index --again diff --git a/package.json b/package.json index f4d1701..4a6c974 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "build": "tsc -b && vite build", "test": "vitest", "format": "prettier --write .", - "lint": "eslint . --max-warnings=0", + "lint": "eslint .", "preview": "vite preview", "prepare": "husky" },