From 4e833e9264eb7acf0062d50ec5b60663f49c0a56 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 1 Jul 2019 15:14:34 +0100 Subject: [PATCH] Run tests on CI --- .circleci/config.yml | 4 ++++ package.json | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e44b07a..49b71b2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -12,3 +12,7 @@ jobs: - run: name: Build Project command: npm run build + + run: + name: Run tests + command: npm test diff --git a/package.json b/package.json index d04c3a2..b963e5e 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "build": "ts-node index.ts", "lint": "tsc --noEmit --project tsconfig.json && tslint --project tsconfig.json index.ts", "prettier": "prettier --write index.ts", - "start": "http-server build/ -c-1" + "start": "http-server build/ -c-1", + "test": "npm run lint && npm run prettier -- --check" }, "repository": { "type": "git",