diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f8ac2bfbb..c85322565 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,6 @@ on: env: ESM_NAME: "openmrs-form-engine-lib" JS_NAME: "openmrs-form-engine-lib.js" - jobs: build: runs-on: ubuntu-latest @@ -47,7 +46,7 @@ jobs: server-token: ${{ secrets.TURBO_SERVER_TOKEN }} - name: Run tests, lint and typechecking - run: yarn turbo verify + run: yarn verify - name: Run build run: yarn turbo build --color --concurrency=5 diff --git a/package.json b/package.json index 6d31e12a4..036235fd0 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "homepage": "https://github.com/openmrs/openmrs-form-engine-lib#readme", "scripts": { "lint": "eslint src --ext tsx --fix", - "verify": "turbo lint typescript", + "verify": "turbo lint typescript && yarn run test", "prettier": "prettier --config prettier.config.js --write \"src/**/*.{ts,tsx}\"", "typescript": "tsc", "test": "jest --config ./jest.config.js --passWithNoTests", diff --git a/turbo.json b/turbo.json index bc810869c..69747d8ef 100644 --- a/turbo.json +++ b/turbo.json @@ -2,30 +2,13 @@ "$schema": "https://turborepo.org/schema.json", "pipeline": { "build": { - "dependsOn": ["^build"], "outputs": ["dist/**"] }, "test": { "dependsOn": ["build"], - "outputs": [], "inputs": ["src/**/*.tsx", "src/**/*.ts", "test/**/*.ts", "test/**/*.tsx"] }, - "lint": { - "outputs": [] - }, - "typescript": { - "dependsOn": [], - "outputs": [] - }, - "extract-translations": { - "outputs": [] - }, - "dev": { - "cache": false, - "persistent": true - }, - "verify": { - "outputs": [] - } + "lint": {}, + "typescript": {} } }