Simple test & lint CI (#1)
continuous-integration/drone/push Build is passing Details

Co-authored-by: Ohm Patel <ohm.patel@uwaterloo.ca>
Co-committed-by: Ohm Patel <ohm.patel@uwaterloo.ca>
This commit is contained in:
Ohm Patel 2024-02-19 03:14:52 -05:00 committed by Ohm Patel
parent 2fbccbc523
commit fb08d1e1c6
2 changed files with 19 additions and 1 deletions

17
.drone.yml Normal file
View File

@ -0,0 +1,17 @@
kind: pipeline
name: default
steps:
- name: test
image: node
commands:
- npm install
- npm run-s test:ci
- name: lint
image: node
commands:
- npm run-s lint:nofix
trigger:
event:
- push

View File

@ -9,7 +9,8 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "prettier -w ./__tests__ ./src && next lint && eslint ./__tests__ --fix",
"lint": "prettier -w ./__tests__ ./src && next lint --fix && eslint ./__tests__ --fix",
"lint:nofix": "prettier -l ./__tests__ ./src && next lint --quiet && eslint ./__tests__",
"test": "jest",
"test:ci": "jest --ci --coverage"
},