action-surefire-report icon indicating copy to clipboard operation
action-surefire-report copied to clipboard

Can't reproduce build

Open NoamDev opened this issue 4 years ago • 2 comments

In order to use this action, I must first reproduce the build to make sure it has been built from the source code. However, The files I get when trying to build are different from those in the dist folder.

Could you elaborate on your build process?

NoamDev avatar Aug 09 '20 08:08 NoamDev

I created to a Dockerfile to allow myself to control any bit of the process. Can you please try it?

FROM node:12.16.2-slim

# Install latest yarn


# Install node_modules from package.json and yarn.lock
WORKDIR /app/frontend

COPY package.json package-lock.json ./
RUN npm ci

COPY *.js ./
RUN npm run-script package
RUN sha256sum dist/index.js

NoamDev avatar Aug 09 '20 08:08 NoamDev

I can definitely build it inside docker container as you shared, but the resulting dist package is indeed different. What I do locally is:

11:26 $ node -v
v12.18.2
11:27 $ npm -v
6.9.0
11:27 $ ncc version
0.23.0
11:27 $ ncc build index.js
ncc: Version 0.23.0
ncc: Compiling file index.js
745kB  dist/index.js
745kB  [1324ms] - ncc 0.23.0

jmisur avatar Aug 15 '20 09:08 jmisur