Commit 3da7d2b4 authored by Lucas Fernandes de Oliveira's avatar Lucas Fernandes de Oliveira

Merge branch 'issue/78' into 'develop'

Issue #78: Exchange NPM by equivalent tool: YARN

See merge request !62
parents b6151cd2 ee73941b
Pipeline #15689 passed with stages
in 1 minute and 46 seconds
......@@ -23,12 +23,12 @@ stages:
run_tests:
stage: test
before_script:
- npm install --silent
- yarn install --frozen-lockfile --silent --non-interactive
script:
- mv config/ci_test.yaml.example config/test.yaml
- mv config/ci_test.env.example config/test.env
- npm test
- npm run lint
- yarn test
- yarn run lint
tags:
- node
- postgres
......
......@@ -18,6 +18,7 @@ ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
# where available (npm@5+)
COPY package*.json $WORKSPACE
COPY yarn.lock $WORKSPACE
RUN \
chmod +x /tini &&\
chown -R node:node $WORKSPACE
......@@ -25,7 +26,7 @@ RUN \
USER node
WORKDIR $WORKSPACE
RUN npm install
RUN yarn install --frozen-lockfile --silent --non-interactive
# Bundle app source
# COPY copy files as root so chown must be used
......
This diff is collapsed.
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