Skip to content

Commit

Permalink
chore(build): npm install if missing any one cache (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcabrera authored May 11, 2021
1 parent 089159c commit 131c4ae
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
restore-keys: |
${{ runner.os }}-${{ matrix.node-version }}-modules-frontend
- name: Install Node.js packages
if: ${{ steps.repo-cache.outputs.cache-hit != 'true' && steps.backend-cache.outputs.cache-hit != 'true' && steps.frontend-cache.outputs.cache-hit != 'true' }}
if: ${{ steps.repo-cache.outputs.cache-hit != 'true' || steps.backend-cache.outputs.cache-hit != 'true' || steps.frontend-cache.outputs.cache-hit != 'true' }}
run: npm install
- name: Lint
if: ${{ success() }}
Expand Down
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ You can update with
```
$ npm run test:integration-dev
```
or
```
$ npm run test:integration-fix
```
## Build
### dotenv files
Expand Down
3 changes: 2 additions & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"start": "npm run tsc && NODE_ENV=production node ./dist/server.js --log=1 --registry=localhost:50051",
"start:dev": "export NODE_ENV=development && nodemon src/server.ts --log=1 --registry=localhost:50051",
"build-only": "tsc -p . && node ./dist/server.js --log=1 --registry=localhost:50051 --buildonly",
"build": "npm run tsc",
"build": "npm run build:clean; npm run tsc",
"build:clean": "rimraf ./dist",
"test": "eslint --ext .json,.js,.ts src/plugins src/routes src/utils",
"test:fix": "eslint --ext .json,.js,.ts src/plugins src/routes src/utils --fix",
"server": "NODE_ENV=production node ./dist/server.js",
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
"test:fix-backend": "cd ./backend && npm run test:fix",
"test:fix-frontend": "cd ./frontend && npm run test:fix",
"test:integration": "jest --roots=./tests",
"test:integration-dev": "npm run build; jest --roots=./tests --watchAll"
"test:integration-dev": "npm run build; jest --roots=./tests --watchAll",
"test:integration-fix": "npm run build; jest --roots=./tests --update-snapshot"
},
"dependencies": {
"dotenv": "^8.2.0",
Expand Down

0 comments on commit 131c4ae

Please sign in to comment.