From ef0538927c01330d3b9cd388ef8a46a4bffcce90 Mon Sep 17 00:00:00 2001 From: Benno Kohrs Date: Sat, 27 Feb 2021 14:16:20 +0100 Subject: [PATCH 1/6] installed coveralls #104 --- package.json | 5 +++-- yarn.lock | 23 ++++++++++++++++++++++- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 0aac292a..901f5d6e 100644 --- a/package.json +++ b/package.json @@ -40,11 +40,12 @@ "@types/node": "^14.14.7", "@typescript-eslint/eslint-plugin": "^4.12.0", "@typescript-eslint/parser": "^4.12.0", + "coveralls": "^3.1.0", "eslint": "^7.17.0", - "eslint-plugin-prettier": "^3.3.1", + "eslint-config-node": "^4.1.0", "eslint-config-prettier": "^6.11.0", "eslint-plugin-node": "^11.1.0", - "eslint-config-node": "^4.1.0", + "eslint-plugin-prettier": "^3.3.1", "jest": "^26.6.3", "lerna": "^3.22.1", "nodemon": "^2.0.6", diff --git a/yarn.lock b/yarn.lock index 6d71500a..6aa52288 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3,7 +3,7 @@ "@agile-ts/core@file:packages/core": - version "0.0.7" + version "0.0.11" "@babel/code-frame@^7.0.0", "@babel/code-frame@^7.10.4", "@babel/code-frame@^7.12.11": version "7.12.11" @@ -2964,6 +2964,17 @@ cosmiconfig@^5.1.0: js-yaml "^3.13.1" parse-json "^4.0.0" +coveralls@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/coveralls/-/coveralls-3.1.0.tgz#13c754d5e7a2dd8b44fe5269e21ca394fb4d615b" + integrity sha512-sHxOu2ELzW8/NC1UP5XVLbZDzO4S3VxfFye3XYCznopHy02YjNkHcj5bKaVw2O7hVaBdBjEdQGpie4II1mWhuQ== + dependencies: + js-yaml "^3.13.1" + lcov-parse "^1.0.0" + log-driver "^1.2.7" + minimist "^1.2.5" + request "^2.88.2" + cross-spawn@^5.0.1, cross-spawn@^5.1.0: version "5.1.0" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" @@ -5699,6 +5710,11 @@ latest-version@^5.0.0: dependencies: package-json "^6.3.0" +lcov-parse@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/lcov-parse/-/lcov-parse-1.0.0.tgz#eb0d46b54111ebc561acb4c408ef9363bdc8f7e0" + integrity sha1-6w1GtUER68VhrLTECO+TY73I9+A= + lerna@^3.22.1: version "3.22.1" resolved "https://registry.yarnpkg.com/lerna/-/lerna-3.22.1.tgz#82027ac3da9c627fd8bf02ccfeff806a98e65b62" @@ -5896,6 +5912,11 @@ lodash@^4.17.12, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17 resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.20.tgz#b44a9b6297bcb698f1c51a3545a2b3b368d59c52" integrity sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA== +log-driver@^1.2.7: + version "1.2.7" + resolved "https://registry.yarnpkg.com/log-driver/-/log-driver-1.2.7.tgz#63b95021f0702fedfa2c9bb0a24e7797d71871d8" + integrity sha512-U7KCmLdqsGHBLeWqYlFA0V0Sl6P08EE1ZrmA9cxjUE0WVqT9qnyVDPz1kzpFEP0jdJuFnasWIfSd7fsaNXkpbg== + loose-envify@^1.1.0: version "1.4.0" resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" From 67b3d773967d87821a9807949eeb5fad52b2fbdf Mon Sep 17 00:00:00 2001 From: Benno Kohrs Date: Sat, 27 Feb 2021 19:52:24 +0100 Subject: [PATCH 2/6] added coverall job in workflow --- .github/workflows/test-all-packages.yaml | 16 +++++++++++++--- examples/react/functional-component-ts/yarn.lock | 8 ++++---- package.json | 2 +- 3 files changed, 18 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test-all-packages.yaml b/.github/workflows/test-all-packages.yaml index 85ae1ec6..91f5d3e7 100644 --- a/.github/workflows/test-all-packages.yaml +++ b/.github/workflows/test-all-packages.yaml @@ -24,13 +24,23 @@ jobs: - name: ⏳ Install run: yarn install + # Run Linter + - name: 🤖 Lint + run: yarn run lint + # Run Tests - name: 🤔 Test run: yarn test - # Run Linter - - name: 🤖 Lint - run: yarn run lint + # Run Test Coverage + - name: Test-Coverage + run: yarn run test:coverage + + # Push Test Coverage to Coveralls + - name: Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} # Build Packages for Testing - name: 🔨 Build Packages diff --git a/examples/react/functional-component-ts/yarn.lock b/examples/react/functional-component-ts/yarn.lock index 4e52950a..4c0a4379 100644 --- a/examples/react/functional-component-ts/yarn.lock +++ b/examples/react/functional-component-ts/yarn.lock @@ -3,16 +3,16 @@ "@agile-ts/api@file:.yalc/@agile-ts/api": - version "0.0.7" + version "0.0.11" "@agile-ts/core@file:.yalc/@agile-ts/core": - version "0.0.7" + version "0.0.11" "@agile-ts/multieditor@file:.yalc/@agile-ts/multieditor": - version "0.0.7" + version "0.0.11" "@agile-ts/react@file:.yalc/@agile-ts/react": - version "0.0.7" + version "0.0.11" "@babel/code-frame@7.8.3": version "7.8.3" diff --git a/package.json b/package.json index 901f5d6e..7286d9ef 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "watch:multieditor": "cd packages/core && yarn run watch", "watch:api": "cd packages/core && yarn run watch", "test": "jest --passWithNoTests", - "test:coverage": "jest -i coverage --passWithNoTests", + "test:coverage": "jest --coverage && cat ./tests/coverage/lcov.info | coveralls", "dev-publish": "lerna run build && lerna run dev-publish", "dev-push": "lerna run build && lerna run dev-push", "package-install": "lerna exec yarn install", From db973a5b3f9a890fedc7e24c9b661a3224ed2a75 Mon Sep 17 00:00:00 2001 From: Benno Kohrs Date: Sat, 27 Feb 2021 19:57:44 +0100 Subject: [PATCH 3/6] removed test command --- .github/workflows/test-all-packages.yaml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/test-all-packages.yaml b/.github/workflows/test-all-packages.yaml index 91f5d3e7..23f3c0e8 100644 --- a/.github/workflows/test-all-packages.yaml +++ b/.github/workflows/test-all-packages.yaml @@ -28,12 +28,8 @@ jobs: - name: 🤖 Lint run: yarn run lint - # Run Tests - - name: 🤔 Test - run: yarn test - # Run Test Coverage - - name: Test-Coverage + - name: 🤔 Test and Test-Coverage run: yarn run test:coverage # Push Test Coverage to Coveralls From 417b28ec837a4e218ec1d7b29d0e99ce201b4d2d Mon Sep 17 00:00:00 2001 From: Benno Kohrs Date: Sat, 27 Feb 2021 20:08:34 +0100 Subject: [PATCH 4/6] fixed path --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7286d9ef..a31ad6ea 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "watch:multieditor": "cd packages/core && yarn run watch", "watch:api": "cd packages/core && yarn run watch", "test": "jest --passWithNoTests", - "test:coverage": "jest --coverage && cat ./tests/coverage/lcov.info | coveralls", + "test:coverage": "jest --coverage && cat ./coverage/lcov.info | coveralls", "dev-publish": "lerna run build && lerna run dev-publish", "dev-push": "lerna run build && lerna run dev-push", "package-install": "lerna exec yarn install", From 625a4562a81da745df5f80b22c50f45036716122 Mon Sep 17 00:00:00 2001 From: Benno Kohrs Date: Sat, 27 Feb 2021 20:37:29 +0100 Subject: [PATCH 5/6] updated coverage command --- .github/workflows/test-all-packages.yaml | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-all-packages.yaml b/.github/workflows/test-all-packages.yaml index 23f3c0e8..97b3525e 100644 --- a/.github/workflows/test-all-packages.yaml +++ b/.github/workflows/test-all-packages.yaml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - # Checkout Project + # Checkout Project - name: 📚 Checkout uses: actions/checkout@v2 diff --git a/package.json b/package.json index a31ad6ea..61e68f87 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "watch:multieditor": "cd packages/core && yarn run watch", "watch:api": "cd packages/core && yarn run watch", "test": "jest --passWithNoTests", - "test:coverage": "jest --coverage && cat ./coverage/lcov.info | coveralls", + "test:coverage": "jest --coverage", "dev-publish": "lerna run build && lerna run dev-publish", "dev-push": "lerna run build && lerna run dev-push", "package-install": "lerna exec yarn install", From dd19968c3119f91054a523a49cbe915c1ca3ad73 Mon Sep 17 00:00:00 2001 From: Benno Kohrs Date: Sat, 27 Feb 2021 20:43:05 +0100 Subject: [PATCH 6/6] fixed comment --- .github/workflows/test-all-packages.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-all-packages.yaml b/.github/workflows/test-all-packages.yaml index 97b3525e..5a4ca66b 100644 --- a/.github/workflows/test-all-packages.yaml +++ b/.github/workflows/test-all-packages.yaml @@ -28,8 +28,8 @@ jobs: - name: 🤖 Lint run: yarn run lint - # Run Test Coverage - - name: 🤔 Test and Test-Coverage + # Run Test and Test Coverage + - name: 🤔 Test and Test Coverage run: yarn run test:coverage # Push Test Coverage to Coveralls