diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bd1a904..41d3b46 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: - run: | yarn install --frozen-lockfile --check-files yarn --cwd react install --frozen-lockfile --check-files - - uses: actions/cache@v2 + - uses: actions/cache@v4 id: cache-build with: path: ./* @@ -30,7 +30,7 @@ jobs: needs: install steps: - name: Restore cache - uses: actions/cache@v2 + uses: actions/cache@v4 id: restore-build with: path: ./* @@ -42,7 +42,7 @@ jobs: needs: install steps: - name: Restore cache - uses: actions/cache@v2 + uses: actions/cache@v4 id: restore-build with: path: ./* diff --git a/.vtex/deployment.yaml b/.vtex/deployment.yaml index 03a15ff..f8d7751 100644 --- a/.vtex/deployment.yaml +++ b/.vtex/deployment.yaml @@ -1,5 +1,5 @@ - name: pickup-points-modal - referenceId: PLACEHOLDER + referenceId: V5G7Q14G description: SonarQube scan for pickup-points-modal build: provider: dkcicd @@ -8,6 +8,8 @@ parameters: sonarProjectName: pickup-points-modal nodeVersion: 20-bookworm + nodeCommands: + - run test:coverage runtime: architecture: amd64 when: diff --git a/.yarnrc b/.yarnrc new file mode 100644 index 0000000..5455c6c --- /dev/null +++ b/.yarnrc @@ -0,0 +1 @@ +ignore-scripts true diff --git a/package.json b/package.json index 25aff67..18618aa 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "lint:locales": "intl-equalizer", "lint:ts": "tsc --noEmit -p react/tsconfig.json", "test": "yarn --cwd react test", - "test:coverage": "yarn --cwd react test --coverage", + "test:coverage": "yarn --cwd react install --frozen-lockfile && yarn --cwd react test --coverage", "test:watch": "yarn --cwd react test --watch", "prepublishOnly": "npm run symlink:remove && npm run symlink && npm run build && npm run symlink:remove", "build:link": "npm link && watch 'npm run build' src",