Commit ee73941b authored by Rafael Dias's avatar Rafael Dias

Issue #78: Exchange NPM by equivalent tool: YARN

Signed-off-by: Rafael Dias's avatarRafael <rpd17@inf.ufpr.br>
parent b6151cd2
Pipeline #15501 passed with stages
in 1 minute and 23 seconds
...@@ -23,12 +23,12 @@ stages: ...@@ -23,12 +23,12 @@ stages:
run_tests: run_tests:
stage: test stage: test
before_script: before_script:
- npm install --silent - yarn install --frozen-lockfile --silent --non-interactive
script: script:
- mv config/ci_test.yaml.example config/test.yaml - mv config/ci_test.yaml.example config/test.yaml
- mv config/ci_test.env.example config/test.env - mv config/ci_test.env.example config/test.env
- npm test - yarn test
- npm run lint - yarn run lint
tags: tags:
- node - node
- postgres - postgres
......
...@@ -18,6 +18,7 @@ ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini ...@@ -18,6 +18,7 @@ ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
# where available (npm@5+) # where available (npm@5+)
COPY package*.json $WORKSPACE COPY package*.json $WORKSPACE
COPY yarn.lock $WORKSPACE
RUN \ RUN \
chmod +x /tini &&\ chmod +x /tini &&\
chown -R node:node $WORKSPACE chown -R node:node $WORKSPACE
...@@ -25,7 +26,7 @@ RUN \ ...@@ -25,7 +26,7 @@ RUN \
USER node USER node
WORKDIR $WORKSPACE WORKDIR $WORKSPACE
RUN npm install RUN yarn install --frozen-lockfile --silent --non-interactive
# Bundle app source # Bundle app source
# COPY copy files as root so chown must be used # COPY copy files as root so chown must be used
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment