diff --git a/.github/workflows/CI-pipeline.yml b/.github/workflows/CI-pipeline.yml index fa532eb..9ab57b8 100644 --- a/.github/workflows/CI-pipeline.yml +++ b/.github/workflows/CI-pipeline.yml @@ -31,7 +31,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node: [12, 14, 16, 18, 20] + node: [14, 16, 18, 20, 22] steps: - name: Checkout repository uses: actions/checkout@v4 @@ -50,8 +50,5 @@ jobs: - name: Run lint run: npm run lint - - name: Run tests - run: npm test - - - name: Check coverage + - name: Run tests and check coverage run: npm run test:coverage diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ce7fa63..d028ac9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -26,7 +26,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 - name: Install of node dependencies run: npm install - name: Run lint @@ -45,7 +45,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 registry-url: 'https://registry.npmjs.org' - name: Install of node dependencies run: npm install @@ -59,7 +59,7 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 20 registry-url: 'https://npm.pkg.github.com' scope: '@reportportal' - name: Publish to GPR diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 73d8fea..26c0685 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,7 +33,7 @@ jobs: releaseVersion: ${{ steps.exposeVersion.outputs.releaseVersion }} steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Read version id: readVersion run: | @@ -78,9 +78,9 @@ jobs: versionInfo: ${{ steps.readChangelogEntry.outputs.log_entry }} steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup NodeJS - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: '12' - name: Configure git @@ -139,7 +139,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Create Release id: createRelease uses: actions/create-release@v1 diff --git a/lib/report-portal-client.js b/lib/report-portal-client.js index 30e624d..9cc7830 100644 --- a/lib/report-portal-client.js +++ b/lib/report-portal-client.js @@ -130,7 +130,12 @@ class RPClient { checkConnect() { const url = [this.config.endpoint.replace('/v2', '/v1'), 'user'].join('/'); - return RestClient.request('GET', url, {}, { headers: this.headers, ...this.restClient.getRestConfig()}); + return RestClient.request( + 'GET', + url, + {}, + { headers: this.headers, ...this.restClient.getRestConfig() }, + ); } async triggerStatisticsEvent() { @@ -332,7 +337,7 @@ class RPClient { 'filter.in.uuid': launchUUIds, 'page.size': launchUUIds.length, }); - const launchSearchUrl = this.config.mode === 'DEBUG' ? + const launchSearchUrl = this.config.mode === 'DEBUG' ? `launch/mode?${params.toString()}` : `launch?${params.toString()}`; this.logDebug(`Find launches with UUIDs to merge: ${launchUUIds}`); return this.restClient diff --git a/package.json b/package.json index ff1a745..62137a4 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ ], "main": "./lib/report-portal-client", "engines": { - "node": ">=12.x" + "node": ">=14.x" }, "dependencies": { "axios": "^1.6.8",