diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8a98bc2..76313b0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,7 +35,7 @@ jobs: - name: Install run: | - npm install + npm ci - name: Format Check run: | @@ -71,7 +71,7 @@ jobs: - name: Install run: | - npm install + npm ci - name: Build run: | @@ -118,7 +118,7 @@ jobs: - name: Integration tests ESM working-directory: ./test-integration/esm-project run: | - npm install --install-links + npm ci --install-links npm run test env: DOCKER_HOST: ${{ steps.engine.outputs.sock }} @@ -126,7 +126,7 @@ jobs: - name: Integration tests CJS working-directory: ./test-integration/cjs-project run: | - npm install --install-links + npm ci --install-links npm run test env: DOCKER_HOST: ${{ steps.engine.outputs.sock }} diff --git a/Dockerfile b/Dockerfile index 9e04666..d4c6fb7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ FROM base AS install-base WORKDIR /project COPY . . RUN --mount=type=cache,target=/root/.npm \ - npm install + npm ci FROM install-base AS build RUN npm run build @@ -33,12 +33,12 @@ COPY --link --from=build /project/test-integration/esm-project esm-project RUN --mount=type=cache,target=/root/.npm \ cd cjs-project && \ npm install ../node-sdk && \ - npm install && \ + npm ci && \ npm test RUN --mount=type=cache,target=/root/.npm \ cd esm-project && \ npm install ../node-sdk && \ - npm install && \ + npm ci && \ npm test FROM scratch AS dist