Skip to content

Commit

Permalink
yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
TomFern committed Aug 3, 2022
1 parent cb25222 commit a8fbb26
Show file tree
Hide file tree
Showing 3 changed files with 5,899 additions and 11 deletions.
16 changes: 8 additions & 8 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ blocks:
- checkout
- nvm use
- node --version
- npm --version
- yarn --version
jobs:
- name: npm install and cache
- name: yarn install and cache
commands:
- cache restore
- npm install
- yarn install
- cache store
- name: Tests
task:
Expand All @@ -36,23 +36,23 @@ blocks:
- checkout
- nvm use
- node --version
- npm --version
- yarn --version
jobs:
- name: Lint
commands:
- cache restore
- npm run lint
- yarn run lint
- name: Unit tests
commands:
- cache restore
- npm test
- yarn test
- name: E2E tests
commands:
- sem-service start postgres
- cache restore
- cp ormconfig.ci.json ormconfig.json
- 'npm run migrate:up'
- 'npm run test:e2e'
- 'yarn run migrate:up'
- 'yarn run test:e2e'
promotions:
- name: Dockerize
pipeline_file: docker-build.yml
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ FROM node:16.16.0-alpine3.15 as dist
WORKDIR /tmp/
COPY package*.json tsconfig*.json *.env ormconfig*.json ./
COPY src/ src/
RUN npm install
RUN npm run build
RUN yarn install
RUN yarn run build

FROM node:16.16.0-alpine3.15 as node_modules
WORKDIR /tmp/
COPY package.json package-lock.json ./
RUN npm install --production
RUN yarn install --production

FROM node:16.16.0-alpine3.16
WORKDIR /usr/local/nub-api
Expand Down
Loading

0 comments on commit a8fbb26

Please sign in to comment.