Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ jobs:
command: git config --global url."https://git@".insteadOf git://
- run:
name: App npm install
command: npm install
command: npm ci

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[⚠️ correctness]
Switching from npm install to npm ci is a good choice for CI environments as it ensures a clean and consistent installation of dependencies based on the package-lock.json. However, ensure that the package-lock.json is up-to-date and correctly reflects the desired state of dependencies, as npm ci will fail if there are any discrepancies.

no_output_timeout: 20m
- save_cache:
key: test-node-modules-{{ checksum "package-lock.json" }}
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ ENV TOPGEAR_ALLOWED_SUBMISSIONS_DOMAINS=$TOPGEAR_ALLOWED_SUBMISSIONS_DOMAINS

RUN npm config set unsafe-perm true
RUN git config --global url."https://git@".insteadOf git://
RUN npm install
RUN npm ci

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[⚠️ correctness]
Switching from npm install to npm ci is a good practice for CI/CD environments as it ensures a clean install based on the package-lock.json. However, ensure that the package-lock.json is up-to-date and committed to the repository to avoid potential discrepancies between local and CI environments.

RUN npm test
RUN npm run build

Expand Down
Loading
Loading