diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index 6be7faa..594b1ae 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -25,16 +25,18 @@ jobs: # See https://github.com/actions/cache - name: Cache dependencies uses: actions/cache@v4 + id: cache-dependencies with: path: | ~/.npm ~/.cache/Cypress - node_modules + **/node_modules key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} restore-keys: | ${{ runner.os }}-node- - name: Install dependencies and verify Cypress + if: steps.cache-dependencies.outputs.cache-hit != 'true' # print Cypress and OS info run: | npm ci diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index c5ec387..76b2bf5 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -18,14 +18,17 @@ jobs: - name: Cache dependencies uses: actions/cache@v4 + id: cache-dependencies with: path: | - node_modules + ~/.npm + **/node_modules key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} restore-keys: | ${{ runner.os }}-node- - name: Install dependencies and verify Playwright + if: steps.cache-dependencies.outputs.cache-hit != 'true' run: | npm ci npx playwright --version diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5d1c816..2efdb31 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,7 +23,7 @@ jobs: id: cache-dependencies with: path: | - node_modules + **/node_modules key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} restore-keys: | ${{ runner.os }}-node- diff --git a/jest.config.js b/jest.config.js index 75365e8..23ea7d5 100755 --- a/jest.config.js +++ b/jest.config.js @@ -39,12 +39,12 @@ module.exports = { // coverage coverageDirectory: "/reports/unit/coverage", coverageReporters: ["clover", "json", "lcov", ["text", { skipFull: true }]], - coverageThreshold: { - global: { - branches: 80, - functions: 80, - lines: 80, - statements: -10, - }, - }, + // coverageThreshold: { + // global: { + // branches: 80, + // functions: 80, + // lines: 80, + // statements: -10, + // }, + // }, };