diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ba249bbce..731bd38bf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,13 +21,20 @@ jobs: - name: Install dependencies run: npm ci + - name: Perfrom ESLint check + run: npm run lint + - name: Perfrom Licenses check run: npm run check-licenses - name: Perform dependency check run: npm run depcheck - - name: Perform checks and tests - run: npm test - env: - NODE_OPTIONS: "" + - name: Perform build + run: npm run build-test + + - name: Run unit tests + run: npm run coverage + + - name: Send report to Coveralls for package @ui5/linter + uses: coverallsapp/github-action@v2.2.3 diff --git a/.nycrc b/.nycrc index 6f6c37453..4b47da6ce 100644 --- a/.nycrc +++ b/.nycrc @@ -3,10 +3,10 @@ "reporter": ["lcov", "text", "text-summary"], "include": ["src/**"], "check-coverage": true, - "statements": 80, - "branches": 75, + "statements": 72, + "branches": 61, "functions": 75, - "lines": 80, + "lines": 72, "watermarks": { "statements": [70, 90], "branches": [70, 90], diff --git a/README.md b/README.md index 4a034daf7..a22e15e32 100644 --- a/README.md +++ b/README.md @@ -4,10 +4,10 @@ > A static code analysis tool for UI5 - [![OpenUI5 Community Slack (#tooling channel)](https://img.shields.io/badge/slack-join-44cc11.svg)](https://ui5-slack-invite.cfapps.eu10.hana.ondemand.com/) [![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.1%20adopted-ff69b4.svg)](https://github.com/SAP/ui5-linter?tab=coc-ov-file#readme) [![REUSE status](https://api.reuse.software/badge/github.com/SAP/ui5-linter)](https://api.reuse.software/info/github.com/SAP/ui5-linter) +[![Coverage Status](https://coveralls.io/repos/github/SAP/ui5-linter/badge.svg)](https://coveralls.io/github/SAP/ui5-linter) ## Description diff --git a/ava.config.js b/ava.config.js index 074ec0bea..e864378d9 100644 --- a/ava.config.js +++ b/ava.config.js @@ -18,10 +18,12 @@ export default { files: [ "test/lib/**/*.ts", ], - ignoredByWatcher: [ - "test/tmp/**", - "lib/**", - ], + watchMode: { + ignoreChanges: [ + "test/tmp/**", + "lib/**", + ], + }, nodeArguments, workerThreads: false, };