Skip to content

Commit 8056333

Browse files
committed
fix: configurint qlty
1 parent ad9a72b commit 8056333

5 files changed

Lines changed: 18 additions & 11 deletions

File tree

.github/actions/build-and-test/action.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ inputs:
1212
cc-test-reporter-id:
1313
description: 'Code Climate Test Reporter ID'
1414
required: true
15+
qlty-coverage-token:
16+
description: 'QLTY Coverage Token'
17+
required: true
1518

1619
runs:
1720
using: 'composite'
@@ -97,11 +100,9 @@ runs:
97100
shell: bash
98101
run: pnpm run test:cov
99102

100-
- name: Submit Code Quality
101-
uses: qltysh/qlty-action/coverage@v1
102-
if: inputs.cc-test-reporter-id != ''
103+
- uses: qltysh/qlty-action/coverage@v2
103104
with:
104-
token: ${{ inputs.cc-test-reporter-id }}
105+
token: ${{ inputs.qlty-coverage-token }}
105106
files: coverage/lcov.info
106107

107108
- name: Upload build artifacts

.github/workflows/publish.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ jobs:
2626
- name: Build and Test
2727
uses: ./.github/actions/build-and-test
2828
with:
29-
node-auth-token: ${{ secrets.NPM_TOKEN }}
30-
github-token: ${{ secrets.GITHUB_TOKEN }}
31-
cc-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
29+
node-auth-token: ${{ secrets.NPM_TOKEN }}
30+
github-token: ${{ secrets.GITHUB_TOKEN }}
31+
cc-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
32+
qlty-coverage-token: ${{ secrets.QLTY_COVERAGE_TOKEN }}
3233

3334
check-releases:
3435
runs-on: ubuntu-latest

.github/workflows/standard.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
- name: Build and Test
2424
uses: ./.github/actions/build-and-test
2525
with:
26-
node-auth-token: ${{ secrets.GHA_PACKAGES }}
27-
sonar-token: ${{ secrets.SONARCLOUD_TOKEN }}
28-
cc-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
26+
node-auth-token: ${{ secrets.GHA_PACKAGES }}
27+
sonar-token: ${{ secrets.SONARCLOUD_TOKEN }}
28+
cc-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
29+
qlty-coverage-token: ${{ secrets.QLTY_COVERAGE_TOKEN }}

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
21
# js-utils
32

43
Repo for useful js utilities
54

65
[![GitHub Issues](https://img.shields.io/github/issues/codibre/js-utils.svg)](https://github.com/codibre/js-utils/issues)
76
[![GitHub Stars](https://img.shields.io/github/stars/codibre/js-utils.svg)](https://github.com/codibre/js-utils/stargazers)
7+
[![Maintainability](https://qlty.sh/gh/codibre/projects/js-utils/maintainability.svg)](https://qlty.sh/gh/codibre/projects/js-utils)
8+
[![Code Coverage](https://qlty.sh/gh/codibre/projects/js-utils/coverage.svg)](https://qlty.sh/gh/codibre/projects/js-utils)
89

910
---
1011

libs/js-tuple/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
A high-performance JavaScript library for managed nested maps, nested set and creating immutable, cached tuples that can be safely used as Map keys.
44
The Nested classes are also high-performant and strong tree structures that can be used for high configurable traversals
55

6+
[![Maintainability](https://qlty.sh/gh/codibre/projects/js-utils/maintainability.svg)](https://qlty.sh/gh/codibre/projects/js-utils)
7+
[![Code Coverage](https://qlty.sh/gh/codibre/projects/js-utils/coverage.svg)](https://qlty.sh/gh/codibre/projects/js-utils)
8+
69
## Why js-tuple?
710

811
In JavaScript, arrays are compared by reference, not by value. This means `[1, 2, 3] !== [1, 2, 3]`, which makes arrays unsuitable as Map keys when you want value-based equality. **js-tuple** solves this by providing cached, immutable arrays where identical element sequences always return the same reference.

0 commit comments

Comments
 (0)