From fb08d1e1c6950b8c2fb5341e8801441349dc71b3 Mon Sep 17 00:00:00 2001 From: Ohm Patel Date: Mon, 19 Feb 2024 03:14:52 -0500 Subject: [PATCH] Simple test & lint CI (#1) Co-authored-by: Ohm Patel Co-committed-by: Ohm Patel --- .drone.yml | 17 +++++++++++++++++ package.json | 3 ++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..9ebc9d5 --- /dev/null +++ b/.drone.yml @@ -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 diff --git a/package.json b/package.json index 8bd8023..84794d0 100644 --- a/package.json +++ b/package.json @@ -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" },