fix: test workflow
This commit is contained in:
@@ -22,7 +22,9 @@ jobs:
|
|||||||
uses: EndBug/add-and-commit@v9
|
uses: EndBug/add-and-commit@v9
|
||||||
with:
|
with:
|
||||||
commit: --no-verify
|
commit: --no-verify
|
||||||
push: --force
|
message: 'fix: resolve linter errors'
|
||||||
|
committer_name: GitHub Actions
|
||||||
|
committer_email: actions@github.com
|
||||||
test:
|
test:
|
||||||
needs: lint
|
needs: lint
|
||||||
name: test
|
name: test
|
||||||
@@ -86,6 +88,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check out repository
|
- name: Check out repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.ACTIONS_PAT }}
|
||||||
- name: Setup node
|
- name: Setup node
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
@@ -98,3 +102,6 @@ jobs:
|
|||||||
uses: EndBug/add-and-commit@v9
|
uses: EndBug/add-and-commit@v9
|
||||||
with:
|
with:
|
||||||
commit: --no-verify
|
commit: --no-verify
|
||||||
|
message: 'fix: resolve formatting errors'
|
||||||
|
committer_name: GitHub Actions
|
||||||
|
committer_email: actions@github.com
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import { ApiResponseFactory } from './ApiResponseFactory';
|
|||||||
import { DataFormat } from '../enums/DataFormat';
|
import { DataFormat } from '../enums/DataFormat';
|
||||||
import { ReportDataType } from '../enums/ReportDataType';
|
import { ReportDataType } from '../enums/ReportDataType';
|
||||||
import { Record } from './Record';
|
import { Record } from './Record';
|
||||||
import { type ApiResponse } from './ApiResponse';
|
import { ApiResponse } from './ApiResponse';
|
||||||
import { type GetPagedAppsResponse } from './GetPagedAppsResponse';
|
import { type GetPagedAppsResponse } from './GetPagedAppsResponse';
|
||||||
import { type App } from './App';
|
import { type App } from './App';
|
||||||
import { type CollectionResponse } from './CollectionResponse';
|
import { type CollectionResponse } from './CollectionResponse';
|
||||||
@@ -49,11 +49,7 @@ export class OnspringClient {
|
|||||||
* @throws {Error} - Thrown when the apiKey is null/undefined/empty/whitespace.
|
* @throws {Error} - Thrown when the apiKey is null/undefined/empty/whitespace.
|
||||||
* @returns {OnspringClient} - A new instance of the OnspringClient class.
|
* @returns {OnspringClient} - A new instance of the OnspringClient class.
|
||||||
*/
|
*/
|
||||||
constructor(
|
constructor(baseUrl: string | undefined | null, apiKey: string | undefined | null, config: CreateAxiosDefaults = {}) {
|
||||||
baseUrl: string | undefined | null,
|
|
||||||
apiKey: string | undefined | null,
|
|
||||||
config: CreateAxiosDefaults = {}
|
|
||||||
) {
|
|
||||||
if (ArgumentValidator.isValidUrl(baseUrl) === false || baseUrl === null) {
|
if (ArgumentValidator.isValidUrl(baseUrl) === false || baseUrl === null) {
|
||||||
throw new Error('baseUrl must be an absolute and well-formed URI.');
|
throw new Error('baseUrl must be an absolute and well-formed URI.');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user