Skip to content

Commit

Permalink
Merge pull request #384 from ResultadosDigitais/fix-ci-npm-version
Browse files Browse the repository at this point in the history
🔧 Update CI
  • Loading branch information
Bruno Nardini authored Jul 13, 2021
2 parents 348aeef + 7387885 commit 6e1b486
Show file tree
Hide file tree
Showing 5 changed files with 27,081 additions and 30 deletions.
32 changes: 7 additions & 25 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,22 @@
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
version: '2.1'

orbs:
node: circleci/node@4.5.1

jobs:
build:
docker:
# specify the version you desire here
- image: circleci/node:10.16.0

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
# - image: circleci/mongo:3.4.4
- image: circleci/node:14.17.3

working_directory: ~/repo

steps:
- checkout
- node/install-packages

# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run: npm install
- run: npm run build-frontend
- run: npm run build-backend

- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}

# run tests!
- run: npm run test:ci
- run:
Expand Down
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,3 @@ file/matrix.room.web.json

# VSCode user settings
.vscode/

# package-lock.json
backend/package-lock.json
frontend/package-lock.json
package-lock.json
Loading

0 comments on commit 6e1b486

Please sign in to comment.